ss-tokens
$
npx mdskill add bitjaru/styleseed/ss-tokensManage design tokens in StyleSeed system
- Solves centralizing color, spacing, and typography definitions for consistent UI.
- Depends on Read, Write, Edit tools to access token files directly.
- Decides actions based on user intent like listing or adding specific types.
- Delivers results by updating JSON sources and CSS custom properties.
SKILL.md
.github/skills/ss-tokensView on GitHub ↗
--- name: ss-tokens description: View, add, or modify design tokens in the StyleSeed design system argument-hint: [action: list|add|update] [token-type: color|spacing|shadow|radius|typography] allowed-tools: Read, Write, Edit, Grep, Glob --- # Design Token Manager ## When NOT to use - For applying tokens in components → use `/ss-component` or `/ss-pattern` - For finding token violations in existing code → use `/ss-lint` - For brand-wide color/font choices that don't exist yet — define a skin first, then add tokens - For non-CSS token systems (Figma, native iOS/Android) — Tailwind v4 / CSS variables only Action: **$0** | Token type: **$1** Arguments: $ARGUMENTS ## Token File Locations | Type | JSON Source | CSS Implementation | |------|-----------|-------------------| | Colors | `tokens/colors.json` | `css/theme.css` `:root` + `@theme inline` | | Typography | `tokens/typography.json` | `css/fonts.css` + `css/base.css` | | Spacing | `tokens/spacing.json` | Tailwind utilities (no custom CSS needed) | | Radius | `tokens/radii.json` | `css/theme.css` `@theme inline` | | Shadows | `tokens/shadows.json` | `css/theme.css` `:root` | ## Instructions ### `list` — Show current tokens Read and display the requested token file in a formatted table. ### `add` — Add new token 1. Add the token to the JSON source file (`tokens/*.json`) 2. Add the CSS custom property to `css/theme.css` under `:root` 3. If it needs a Tailwind utility, add to the `@theme inline` block 4. If it has a dark mode variant, add to the `.dark` block ### `update` — Modify existing token 1. Update the value in the JSON source file 2. Update the CSS custom property in `theme.css` 3. Check all components for direct usage that might need updating ## Rules - Always keep JSON and CSS in sync - Use semantic names, not descriptive names (`--success` not `--green-500`) - Colors should support both light and dark modes - New tokens must be added to BOTH the JSON source AND the CSS implementation
More from bitjaru/styleseed
- ss-a11yAudit a component or page for accessibility issues and fix them
- ss-auditAudit screens for UX issues using Nielsen's heuristics and modern mobile UX best practices
- ss-componentGenerate a new UI component following the StyleSeed design conventions
- ss-copyGenerate UX microcopy (button labels, error messages, empty states, toasts) following a casual-but-polite voice and tone
- ss-feedbackAdd appropriate user feedback states (loading, success, error, empty) to a component or page
- ss-flowDesign user flows and navigation structure following proven UX patterns
- ss-lintQuick automated lint — detects common design system violations in seconds
- ss-motionApply a named StyleSeed motion to a component — either one of the 5 personality seeds (Spring/Silk/Snap/Float/Pulse × entrance/exit/hover/press/layout) or a distinctive keyword move from the motion library (toggle-flip, toggle-curtain, reveal-blur, pop-in, shimmer, …). Translates vibe words into framer-motion code from one source of truth.
- ss-pageScaffold a new mobile page/screen using the StyleSeed layout patterns
- ss-patternGenerate a composed UI pattern (card layout, list, form section, grid, etc.) using design system primitives