design-system-aware

Installation
SKILL.md

Design System Aware Code Generation

Trigger condition: This skill activates when ANY .tsx or .jsx file inside src/ or app/ is being created or modified, AND .claude/design-tokens/design-tokens.json exists.

When writing or editing React/Next.js frontend code in this project, follow these rules:

Before Writing Code

  1. Check if .claude/design-tokens/design-tokens.json exists.
  2. If it exists, read it and use it as the source of truth for all design decisions.
  3. Check the components section before creating any new component — reuse what exists.

Token Usage

  • All colors, spacing, font sizes, shadows, and border radii must come from .claude/design-tokens/design-tokens.json.
  • Never hardcode design values. No raw hex colors, no magic number padding or margins.
  • Use the project's styling approach as specified in styling_approach.

Preferred Library Conventions

Related skills

More from codestate-cs/figma-to-design

Installs
15
First Seen
Apr 3, 2026