piyushverma0/android-agent-skills/design-tokens
Claude Code and agent skill by piyushverma0/android-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Material 3 design system foundation for Android apps. Use this skill for ANY theming, color, spacing, shape, or elevation work — MaterialTheme, colorScheme, ColorScheme roles, lightColorScheme, darkColorScheme, dynamicColorScheme, primary/secondary/tertiary/surface/background tokens, onSurface, onBackground, surfaceContainer, outline, spacing scale, 4dp grid, shape tokens, RoundedCornerShape, Shapes, elevation, tonalElevation, shadowElevation, dark mode, isSystemInDarkTheme, Material You, dynamic color, brand colors, semantic colors, Theme.kt, Color.kt. Applies to ALL app categories: fintech, edtech, healthtech, ecommerce, social, proptech, enterprise, productivity, entertainment, food, travel.
Install
npx vskill@latest install piyushverma0/android-agent-skills/design-tokensSKILL.md
The same SKILL.md was published earlier as piyushverma0/android-agent-skills/design-tokens.
Design Tokens
The complete Material 3 design system foundation for Android. Every color, spacing value, elevation, and shape in a production app must come from this system. 22 rules covering all categories globally.
CRITICAL — Color System
Rule 1: Always Use Semantic Color Roles — Never Hardcode
The 6 color families — each has a surface + on-surface pair:
primary/onPrimary— brand color, key interactive elementssecondary/onSecondary— supporting brand colortertiary/onTertiary— accent, contrasting highlighterror/onError— errors, destructive actionssurface/onSurface— cards, sheets (useonSurfaceVariantfor secondary text)background/onBackground— page background
Container variants — for filled backgrounds: primaryContainer/onPrimaryContainer, secondaryContainer/onSecondaryContainer
Surface containers — layered depth (lowest→low→default→high→highest)
Always pair correctly: content on primaryContainer uses onPrimaryContainer, never onSurface.
Rule 2: Theme Structure — Complete Theme.kt Required
Rule 3: Dark Mode — Shift Colors, Don't Invert
Dark mode is not if(dark) Color.White else Color.Black. Every semantic role needs an independently chosen dark variant.
- Background:
#FAFAFA→#1C1B1F(dark gray, NOT black) - Primary: dark green
#006C51→ light green#68DBA8(shifts to maintain contrast) - Text:
#212121→#E6E1E5(off-white, not pure white) - Status bar: light icons when
darkTheme = true
Rule 4: Dynamic Color — Enable Correctly with Version Check
Rule 5: Semantic Colors for Status and Finance
CRITICAL — Spacing
Rule 6: 4dp Grid — All Spacing from the Scale
Category density guide:
- Fintech/Enterprise → dense (8-12dp vertical), maximize information
- Healthtech/Proptech → generous (16-24dp), open and calming
- Social feeds → compact (8-12dp between cards)
- Edtech → readable (16-24dp horizontal padding for text)
HIGH — Elevation
Rule 7: Tonal Elevation — Not Box Shadows
HIGH — Shapes
Rule 8: Shape Scale — Consistent Personality
Category shape personalities:
- Fintech → conservative (4-12dp), pill shapes signal unreliability in banking
- Edtech → friendly (16-20dp for course cards), pill for tags
- Healthtech → soft (20-28dp for metric cards), circles for rings
- Enterprise → minimal (4-8dp), professional density
- Social → chat bubbles need asymmetric radius (large on 3 corners, small on sender corner)
HIGH — Brand Colors
Rule 9: Integrate Brand Without Breaking System
References
references/color-roles-reference.md— Full 30-role table, component→color mapping, surface container guide. Read when choosing which role to use for a new component.rules/— 8 individual rule files with complete examples and anti-patterns for all rules above.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/design-tokens/SKILL.md
Popularity
- Repository stars
- 15
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/piyushverma0/android-agent-skills/design-tokens)