@fr0mpy/component-system
v2.2.0
Published
Claude Code UI styling system with design tokens, 40 Base UI component recipes, and visual harness
Downloads
373
Maintainers
Readme
@fr0mpy/component-system
Claude Code UI styling system with design tokens, 36 component recipes, and visual preview harness.
Installation
npx @fr0mpy/component-systemWhat's Included
- skills/ - Styling skill for consistent UI generation
- component-recipes/ - 36 pre-built component templates (button, card, modal, toast, etc.)
- commands/ -
/setup-stylingand/component-harness
Features
Design Tokens
Run /setup-styling to configure your design system interactively. Generates styling-config.json with:
- Colors (primary, secondary, destructive, muted, etc.)
- Border radius
- Shadows
- Spacing
- Typography
Component Recipes
36 component recipes organized by category:
- Form (10): button, input, textarea, select, combobox, checkbox, radio, switch, slider, label
- Layout (6): card, separator, collapsible, accordion, tabs, table
- Navigation (5): navigation-menu, breadcrumb, pagination, dropdown-menu, context-menu
- Overlay (6): modal, dialog, drawer, popover, hover-card, tooltip
- Feedback (5): alert, toast, progress, skeleton, spinner
- Display (4): badge, avatar, carousel, toggle-group
Component Harness
Run /component-harness to scaffold a Vite + React development environment for visual component preview.
Usage
# Initialize
npx @fr0mpy/component-system
# With options
npx @fr0mpy/component-system --force # Overwrite existing
npx @fr0mpy/component-system --merge # Add to existing .claude
npx @fr0mpy/component-system --remove # Remove installation
# Selective updates
npx @fr0mpy/component-system --update-skills
npx @fr0mpy/component-system --update-recipes
npx @fr0mpy/component-system --update-commandsGetting Started
- Install:
npx @fr0mpy/component-system - Configure: Use
/setup-stylingto set up your design tokens - Preview: Use
/component-harnessto launch visual preview
Integration with Prompt System
For auto-triggering styling rules when you mention UI/styling keywords, also install:
npx @fr0mpy/prompt-systemWhen both packages are installed, the component system injects a styling.json trigger into the prompt system's triggers.d/ directory.
License
MIT
