Skill library

Agent skill Frontend

UI Design System

Establish reusable styling and design decisions across web screens.

  • Design systems
  • Accessibility
  • shadcn/ui

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add samhvw8/dot-claude --skill ui-design-system --agent claude-code --yes

Check this file in your project.claude/skills/ui-design-system/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add samhvw8/dot-claude --skill ui-design-system

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use the Samhvw8 edition of `ui-design-system` in an existing React/Tailwind or CSS-variable project. The browser fixture used a component role that references a semantic role under the same themed ancestor.

View operation manual

What this skill helps with

  • Establish reusable styling and design decisions across web screens.

Good for

  • Design tokens and shared styles
Skill name
ui-design-system
Scenario
Theme a subscribed-plan action through three token layers
Deliverable
A traceable primitive-to-component map and computed before/after theme evidence for one action.
Skill name
ui-design-system

Define a component task with an observable result

A request with an unclear outcome

Put color literals for both themes in each instance of the action.

The instances then duplicate the theme mapping and can drift independently.

A workflow with observable results

  1. Trace one action’s existing colors
  2. Bind the action through semantic roles
  3. Verify the cascade in both schemes

Samhvw8 UI Design System operation manual

Trace palette, semantic and component roles so theme changes reach one action predictably.

Replace the bracketed details with your own project and target.

  1. Trace one action’s existing colors

    Read the three-tier token reference.

    Prompt · Step 1
    Use Samhvw8’s `ui-design-system` for [subscribed-plan action]. Read references/DESIGN_TOKENS.md and locate the current primitive palette, theme boundary, and component’s visual roles. Map its foreground and background from primitive to semantic to component. Report the actual existing tokens to reuse.
  2. Bind the action through semantic roles

    Scope values where the active theme resolves them.

    Prompt · Step 2
    Use Samhvw8 `ui-design-system` to update [approved action]. Create or reuse the component foreground and background aliases pointing to semantic roles. Switch the semantic values at the existing theme boundary. Keep the primitive colors and UI actions stable, and confirm the component aliases resolve within the active theme scope.
  3. Verify the cascade in both schemes

    Compare actual color pairs and visible focus.

    • The component role resolves through the semantic mapping in each mode.
    • Action markup consumes roles and the paired values change at the theme boundary.
    Prompt · Step 3
    Use Samhvw8 `ui-design-system` to check [local plan action]. Toggle the existing theme and inspect the computed foreground and background. Verify the expected tokens resolve in both modes, focus stays visible and the button remains usable. Include the complete cascade for one role and point out any affected consumers.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

Find the layer that should change in dark modeReference
Command or reference
references/DESIGN_TOKENS.md · Three-tier token system
Examples
Map light and dark semantic roles to existing primitives at the theme boundary.

Samhvw8 UI Design System troubleshooting

Should I add a new primitive color for each component state?

Reuse a primitive where it matches. Give a repeated state a semantic role, then map the component-specific property to that role.