/harness-claude:css-design-tokensfrom harness-claude
Defines and manages design tokens (color, spacing, typography, effects) as CSS custom properties mapped to Tailwind utility classes. Useful for establishing design systems, supporting multiple themes, and bridging Figma tokens to code.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /harness-claude:css-design-tokens still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Define and manage design tokens for colors, spacing, typography, and effects in Tailwind CSS
--color-primary, --color-surface) instead of absolute names (--blue-500).tailwind.config.ts to map tokens to utility classes./* styles/tokens.css — primitive + semantic layers */
@layer base {
:root {
/* Primitive tokens — raw values */
--blue-50: 239 246 255;
--blue-500: 59 130 246;
--blue-900: 30 58 138;
--gray-50: 249 250 251;
--gray-900: 17 24 39;
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
/* Semantic tokens — map to purpose */
--color-primary: var(--blue-500);
--color-primary-foreground: 255 255 255;
--color-background: var(--gray-50);
--color-foreground: var(--gray-900);
--color-muted: 107 114 128;
--color-border: 229 231 235;
--color-destructive: 239 68 68;
--radius-default: var(--radius-md);
}
.dark {
--color-primary: var(--blue-500);
--color-primary-foreground: 255 255 255;
--color-background: 15 23 42;
--color-foreground: 248 250 252;
--color-muted: 148 163 184;
--color-border: 51 65 85;
}
}
// tailwind.config.ts
import type { Config } from 'tailwindcss';
const config: Config = {
content: ['./src/**/*.{ts,tsx}'],
theme: {
extend: {
colors: {
primary: {
DEFAULT: 'rgb(var(--color-primary) / <alpha-value>)',
foreground: 'rgb(var(--color-primary-foreground) / <alpha-value>)',
},
background: 'rgb(var(--color-background) / <alpha-value>)',
foreground: 'rgb(var(--color-foreground) / <alpha-value>)',
muted: 'rgb(var(--color-muted) / <alpha-value>)',
border: 'rgb(var(--color-border) / <alpha-value>)',
destructive: 'rgb(var(--color-destructive) / <alpha-value>)',
},
borderRadius: {
DEFAULT: 'var(--radius-default)',
sm: 'var(--radius-sm)',
md: 'var(--radius-md)',
lg: 'var(--radius-lg)',
},
},
},
};
export default config;
// Usage — semantic utilities
<div className="bg-background text-foreground border-border rounded p-4">
<h1 className="text-primary">Welcome</h1>
<button className="bg-primary text-primary-foreground rounded px-4 py-2">Get Started</button>
</div>
// These utilities automatically adapt to light/dark theme via CSS variables
RGB channel pattern: Store colors as space-separated RGB channels (59 130 246) instead of full values (#3b82f6). This enables Tailwind's opacity modifier: bg-primary/50 generates rgba(59, 130, 246, 0.5).
Tailwind v4 tokens: In v4, tokens are defined directly in CSS with @theme:
@import 'tailwindcss';
@theme {
--color-primary: oklch(0.6 0.2 260);
--color-surface: oklch(0.98 0 0);
--spacing-18: 4.5rem;
--font-display: 'Cal Sans', sans-serif;
}
Token hierarchy:
--blue-500: 59 130 246 — raw color, never used directly in components--color-primary: var(--blue-500) — purpose-based, used in utilities--button-bg: var(--color-primary) — optional, for complex component themingFigma-to-code workflow: Export tokens from Figma (via Tokens Studio or Style Dictionary), generate CSS variables, import into your token stylesheet. Changes propagate automatically through the semantic layer.
Typography tokens:
extend: {
fontFamily: {
sans: ['var(--font-sans)', 'system-ui', 'sans-serif'],
mono: ['var(--font-mono)', 'monospace'],
},
fontSize: {
'display': ['3.5rem', { lineHeight: '1.1', fontWeight: '700' }],
'heading': ['2rem', { lineHeight: '1.25', fontWeight: '600' }],
},
},
https://tailwindcss.com/docs/theme
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-tokens, tailwind-theming, css-variables, dark-mode, design-system
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeRead when SKILL.md points to them.
793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communicationOther plugins' skills for the same job