
Core Components
This one enforces design token discipline across your component library. It stops you from hard-coding colors, spacing, and typography by providing a complete token system (spacing from $1 to $8, semantic color tokens like $textPrimary, font sizes). You get wrapper components like Box, HStack, VStack, Button, and Card that only accept token values as props. The anti-patterns section is the real value here: it shows exactly what not to do (raw View components, inline styles, magic numbers) versus the token-based approach. Use this when you're tired of inconsistent spacing and want your design system to actually get enforced at the code level instead of just documented in Figma.
- skills.sh installs
- 249
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill core-components --agent claude-codeInstalls into .claude/skills of the current project.
Files
Core Components
Design System Overview
Use components from your core library instead of raw platform components. This ensures consistent styling and behavior.
Design Tokens
NEVER hard-code values. Always use design tokens.
Spacing Tokens
// CORRECT - Use tokens
<Box padding="$4" marginBottom="$2" />
// WRONG - Hard-coded values
<Box padding={16} marginBottom={8} />
| Token | Value |
|---|---|
$1 | 4px |
$2 | 8px |
$3 | 12px |
$4 | 16px |
$6 | 24px |
$8 | 32px |
Color Tokens
// CORRECT - Semantic tokens
<Text color="$textPrimary" />
<Box backgroundColor="$backgroundSecondary" />
// WRONG - Hard-coded colors
<Text color="#333333" />
<Box backgroundColor="rgb(245, 245, 245)" />
| Semantic Token | Use For |
|---|---|
$textPrimary | Main text |
$textSecondary | Supporting text |
$textTertiary | Disabled/hint text |
$primary500 | Brand/accent color |
$statusError | Error states |
$statusSuccess | Success states |
Typography Tokens
<Text fontSize="$lg" fontWeight="$semibold" />
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Frontend Development, Design & UI/UX
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Scvi Tools249
- Postgres Schema Design248
- Obsidian Clipper Template Creator247
- Test Fixing247
- Dask246
- Denario246
- Ensembl Database246
- Security Best Practices246
- Doc Coauthoring245
- Graphql245
- Iterate Pr245
- Playwright E2e Builder245
- Adaptyv242
- Medchem241
- Personal Tool Builder241
- Zarr Python239
- Cobrapy238
- Pylabrobot238
- Qutip237
- Torchdrug237
- Template Skill236
- Deployment Procedures235
- Gcp Cloud Run235
- Gepetto234