/design-system:design-tokensfrom design-system
Provides authoritative context for a project's design tokens, including colors, spacing, and breakpoints defined as CSS custom properties. Ensures generated code uses tokens instead of hardcoded values.
Ships in design-system. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill provides the AI assistant with authoritative context regarding the project's design tokens. It ensures that any generated code or design recommendations are consistent with the established design system.
The design tokens are defined in the following catalog:
You MUST refer to this file to identify available color palettes, spacing scales, and breakpoints.
When generating CSS or inline styles, you MUST prefer using CSS custom properties (variables) defined in the design system instead of hardcoded HEX, RGB, or pixel values.
Bad:
.button {
background-color: #007bff;
padding: 16px;
}
Good:
.button {
background-color: var(--color-primary-500);
padding: var(--spacing-md);
}
Use semantic names for colors whenever possible (e.g., --color-primary, --color-background-primary, --color-text-primary). These tokens are designed to be theme-aware (supporting both light and dark modes). Refer to references/all-tokens-css.md for the full list of available semantic and numeric scales.
The project uses a consistent spacing scale. Use the --spacing-* variables for margins, paddings, and gaps.
For responsive design, use the established breakpoints in your media queries. Example:
@media (min-width: var(--breakpoint-tablet)) {
/* ... */
}
The project uses semantic tokens that automatically support light and dark modes. You MUST use these top-level semantic tokens instead of specific light or dark variants to ensure the UI adapts correctly to the user's theme.
Bad:
/* Avoid using theme-specific tokens directly in components */
.card {
background-color: var(--light-color-background-primary);
color: var(--light-color-text-primary);
}
[data-theme='dark'] .card {
background-color: var(--dark-color-background-primary);
color: var(--dark-color-text-primary);
}
Good:
/* Use semantic tokens that handle theming automatically */
.card {
background-color: var(--color-background-primary);
color: var(--color-text-primary);
}
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dezkareid/ai-team --plugin design-system