vibe-step-2-design-tokens
Create CSS custom properties for colors, spacing, typography, and animations
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Step 2: Design Tokens
Create the CSS custom properties token system that all components will consume.
Prerequisites
Read docs/orchestration/progress.json and verify:
-
step-1b-init-projectstatus iscompleted
If not, tell the user to run /vibe-step-1b-init-project first.
Reference Docs
Read this for the complete token specification:
-
docs/orchestration/04-design-system.md— All CSS custom properties, colors, typography, spacing, animations
Step 1: Create Tokens File
Create src/styles/tokens.css containing ALL CSS custom properties from 04-design-system.md:
- Base color palette (gray, blue, green, red, amber scales)
- Semantic status colors (pending, active, completed, failed, waiting — bg, color, border)
- Confidence visualization colors (high, medium, low)
- Typography (font family, sizes, weights, line heights)
- Spacing scale (space-1 through space-12)
- Border radius (sm, md, lg, xl, full)
- Shadows (sm, md, lg)
- Animation tokens (durations, easings)
- Component surface tokens (backgrounds, borders, text colors)
Include the @media (prefers-reduced-motion: reduce) block that zeros out animation durations.
Step 2: Create Animations File
Create src/styles/animations.css containing all @keyframes definitions from 04-design-system.md:
-
ax-pulse— for active status pulsing -
ax-spin— for loading spinners -
ax-slide-in— for new step appearance -
ax-fade-in— for general reveals -
ax-scale-pop— for completion checkmarks
Step 3: Create Styles Index
Create src/styles/index.css that imports both:
@import './tokens.css';
@import './animations.css';
Step 4: Import in Entry Point
Update src/index.ts to import the styles so they're included in the bundle:
import './styles/index.css';
Step 5: Update Progress
Read docs/orchestration/progress.json, set globalSteps.step-2-design-tokens.status to "completed", set completedAt to current ISO timestamp, update lastUpdated, write back.
Exit Criteria
-
src/styles/tokens.cssexists with all CSS custom properties from doc 04 -
src/styles/animations.cssexists with all keyframe definitions -
src/styles/index.cssimports both files -
src/index.tsimports the styles - All token names use the
--ax-prefix -
prefers-reduced-motionmedia query included - Progress updated
- Confirm to user: "Design tokens created. If step 3 is also done, run
/vibe-step-4-component PlanCardnext."
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-03-11
- Index updated
- 2026-03-11
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!