Loading...
Loading...
Extract and structure design tokens from existing CSS, Tailwind config, Figma variables, or design descriptions. Use when asked to extract tokens, create a token system, audit design consistency, or migrate from hardcoded values to a token architecture. Outputs tokens in CSS custom properties, Tailwind config, and Style Dictionary JSON formats.
npx skill4agent add eyeszik/claude-design-skills design-token-extractortailwind.config.jstailwind.config.tscolor.blue.50 → #eff6ff
color.blue.500 → #3b82f6
color.blue.900 → #1e3a8a
space.1 → 4px
space.2 → 8px
font-size.sm → 14px
font-size.base → 16px
border-radius.sm → 4px
border-radius.md → 8px
duration.fast → 150ms
duration.base → 250mscolor.background.default → color.neutral.50
color.background.subtle → color.neutral.100
color.text.primary → color.neutral.900
color.text.secondary → color.neutral.500
color.text.disabled → color.neutral.300
color.border.default → color.neutral.200
color.interactive.primary → color.blue.600
color.interactive.primary.hover → color.blue.700
color.interactive.destructive → color.red.600
space.component.padding.sm → space.3
space.component.padding.md → space.4
space.layout.section → space.16button.height.md → 40px
button.padding.x → space.4
card.radius → border-radius.lg
input.border.color → color.border.default/* primitives */
:root {
--color-blue-500: #3b82f6;
--space-4: 16px;
}
/* semantic */
:root {
--color-interactive-primary: var(--color-blue-500);
--space-component-padding-md: var(--space-4);
}// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'interactive-primary': 'var(--color-interactive-primary)',
'text-primary': 'var(--color-text-primary)',
},
spacing: {
'component-md': 'var(--space-component-padding-md)',
}
}
}
}{
"color": {
"interactive": {
"primary": {
"$value": "{color.blue.500}",
"$type": "color",
"$description": "Primary interactive element color — buttons, links, focus rings"
}
}
}
}#374151#3f4451{category}.{property}.{variant}.{state}interactive-primaryblue-buttondefaulthoveractivedisabledfocusxssmmdlgxl2xl