Rechercher

PythonReactSEOPDF
GitHub Skill

vibe-step-2-design-tokens

Create CSS custom properties for colors, spacing, typography, and animations

Iambizi☆ 2 Étoiles du dépôt0 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

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-project status is completed

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:

  1. Base color palette (gray, blue, green, red, amber scales)
  2. Semantic status colors (pending, active, completed, failed, waiting — bg, color, border)
  3. Confidence visualization colors (high, medium, low)
  4. Typography (font family, sizes, weights, line heights)
  5. Spacing scale (space-1 through space-12)
  6. Border radius (sm, md, lg, xl, full)
  7. Shadows (sm, md, lg)
  8. Animation tokens (durations, easings)
  9. 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.css exists with all CSS custom properties from doc 04
  • src/styles/animations.css exists with all keyframe definitions
  • src/styles/index.css imports both files
  • src/index.ts imports the styles
  • All token names use the --ax- prefix
  • prefers-reduced-motion media query included
  • Progress updated
  • Confirm to user: "Design tokens created. If step 3 is also done, run /vibe-step-4-component PlanCard next."

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-03-11
Mise à jour de l’index
2026-03-11
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!