knofler/myai/design-system-setup

Claude Code and agent skill by knofler/myai

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Set up a design system with Tailwind CSS, React, and Next.js. Define tokens, create base components, and document usage patterns. Triggers: design system, component library, UI kit, design tokens, style guide

Install

npx vskill@latest install knofler/myai/design-system-setup

SKILL.md

The same SKILL.md was published earlier as knofler/myai/design-system-setup.

Design System Setup Playbook

1. Audit Existing Setup

  • Check for existing tailwind.config.js or tailwind.config.ts.
  • Review current component directory structure.
  • Read documentation/AI_RULES.md for any UI/styling mandates.

2. Define Color Palette

  • Define semantic colors in Tailwind config: primary, secondary, accent, neutral.
  • Include state colors: success, warning, error, info.
  • Provide light/dark variants (50-950 scale or explicit light/dark tokens).
  • Ensure all color pairs meet WCAG 2.1 AA contrast (4.5:1 for text).

3. Define Typography Scale

  • Set font families: sans, serif, mono.
  • Define size scale: xs, sm, base, lg, xl, 2xl, 3xl, 4xl.
  • Set line heights and letter spacing for each size.
  • Define heading styles (h1-h6) with consistent rhythm.

4. Define Spacing and Sizing

  • Use Tailwind's default 4px grid or customize.
  • Define consistent border-radius tokens: sm, md, lg, full.
  • Define shadow tokens: sm, md, lg, xl.

5. Create Base Components

Build reusable React components with Tailwind:

  • Button: Variants (primary, secondary, ghost, danger), sizes (sm, md, lg), loading state.
  • Input: Text, email, password, with label, error message, disabled state.
  • Card: Header, body, footer sections, with optional border/shadow.
  • Modal: Overlay, content, close button, focus trap, ESC to close.

6. Document Usage Patterns

  • Create a usage guide with code examples for each component.
  • Document prop types and default values.
  • If Storybook is available, create stories for each component and variant.

7. Save and Update

  • Save design system docs to AI/design/.
  • Update state/STATE.md with design system status.
  • Log the session in logs/claude_log.md.

8. Review Checklist

  • [ ] Color palette meets contrast requirements.
  • [ ] Typography scale is consistent.
  • [ ] Base components are accessible (keyboard, ARIA).
  • [ ] All components have TypeScript props interface.
  • [ ] Usage documentation written.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/knofler/myai/design-system-setup/badge)](https://verified-skill.com/skills/knofler/myai/design-system-setup)

Something wrong with this skill or its page? Tell us.