$npx -y skills add bitjaru/styleseed --skill ss-tokensView, add, or modify design tokens in the StyleSeed design system
| 1 | # Design Token Manager |
| 2 | |
| 3 | ## When NOT to use |
| 4 | |
| 5 | - For applying tokens in components → use `/ss-component` or `/ss-pattern` |
| 6 | - For finding token violations in existing code → use `/ss-lint` |
| 7 | - For brand-wide color/font choices that don't exist yet — define a skin first, then add tokens |
| 8 | - For non-CSS token systems (Figma, native iOS/Android) — Tailwind v4 / CSS variables only |
| 9 | |
| 10 | Action: **$0** | Token type: **$1** |
| 11 | Arguments: $ARGUMENTS |
| 12 | |
| 13 | ## Token File Locations |
| 14 | |
| 15 | | Type | JSON Source | CSS Implementation | |
| 16 | |------|-----------|-------------------| |
| 17 | | Colors | `tokens/colors.json` | `css/theme.css` `:root` + `@theme inline` | |
| 18 | | Typography | `tokens/typography.json` | `css/fonts.css` + `css/base.css` | |
| 19 | | Spacing | `tokens/spacing.json` | Tailwind utilities (no custom CSS needed) | |
| 20 | | Radius | `tokens/radii.json` | `css/theme.css` `@theme inline` | |
| 21 | | Shadows | `tokens/shadows.json` | `css/theme.css` `:root` | |
| 22 | |
| 23 | ## Instructions |
| 24 | |
| 25 | ### `list` — Show current tokens |
| 26 | Read and display the requested token file in a formatted table. |
| 27 | |
| 28 | ### `add` — Add new token |
| 29 | 1. Add the token to the JSON source file (`tokens/*.json`) |
| 30 | 2. Add the CSS custom property to `css/theme.css` under `:root` |
| 31 | 3. If it needs a Tailwind utility, add to the `@theme inline` block |
| 32 | 4. If it has a dark mode variant, add to the `.dark` block |
| 33 | |
| 34 | ### `update` — Modify existing token |
| 35 | 1. Update the value in the JSON source file |
| 36 | 2. Update the CSS custom property in `theme.css` |
| 37 | 3. Check all components for direct usage that might need updating |
| 38 | |
| 39 | ## Rules |
| 40 | - Always keep JSON and CSS in sync |
| 41 | - Use semantic names, not descriptive names (`--success` not `--green-500`) |
| 42 | - Colors should support both light and dark modes |
| 43 | - New tokens must be added to BOTH the JSON source AND the CSS implementation |