agentleFS
ww-w-aiww-w-ai/bkit-gemini/skills/phase-5-design-system/SKILL.md

phase-5-design-system

Skill66 starsChanged 7 months agoApache-2.0View on GitHub

Skill for building platform-independent design systems. Develops consistent component libraries for all UI frameworks.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Phase 5: Design System

Build a consistent component library

Components

1. Design Tokens

:root {
  /* Colors */
  --color-primary: #3b82f6;
  --color-secondary: #64748b;
  --color-success: #22c55e;
  --color-error: #ef4444;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-8: 2rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

2. Base Components

// components/ui/button.tsx
interface ButtonProps {
  variant: 'primary' | 'secondary' | 'outline';
  size: 'sm' | 'md' | 'lg';
  children: React.ReactNode;
  onClick?: () => void;
}

export function Button({ variant, size, children, onClick }: ButtonProps) {
  return (
    <button
      className={cn('btn', `btn-${variant}`, `btn-${size}`)}
      onClick={onClick}
    >
      {children}
    </button>
  );
}

3. Component Categories

  • Primitives: Button, Input, Select, Checkbox
  • Layout: Container, Grid, Stack, Flex
  • Navigation: Navbar, Sidebar, Tabs, Breadcrumb
  • Feedback: Alert, Toast, Modal, Spinner
  • Data Display: Table, Card, List, Badge

Tools

  • shadcn/ui (recommended)
  • Tailwind CSS
  • Radix UI primitives

Output

Save components to: components/ui/

Next Phase

After completion: /phase-6-ui-integration

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.