Skip to content

A Claude Code skill that injects a floating visual theme editor into React + Tailwind CSS v4 projects

License

Notifications You must be signed in to change notification settings

madebysan/theme-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theme Editor

A Claude Code skill that injects a floating visual theme editor
into any React + Tailwind CSS v4 project.

Install the skill

Theme Editor demo — cycling through presets on a dashboard

Theme Editor UI — Colors, Type, and Style tabs


What it does

Type /theme-editor in Claude Code and it injects a floating popover into your running dev server. Tweak your design tokens live in the browser — colors, fonts, border radius, shadows, spacing — and see changes instantly.

Features:

  • 14 curated color presets with prev/next navigation
  • 10 Google Font pairings with auto-loading
  • 6 style combos (Sharp, Rounded, Default, Soft, Bold, Minimal)
  • Shuffle per category or shuffle everything at once
  • Undo/redo with Cmd+Z / Cmd+Shift+Z
  • Export as CSS or JSON, import from JSON
  • LocalStorage persistence across page refreshes
  • Dev-only rendering (stripped from production builds)
  • Project-aware — adapts to your actual CSS variables

How it works

The skill has three phases:

Command What happens
/theme-editor Inject — Audits your CSS tokens, restructures static variables if needed, copies 11 files into your project, wires the editor into your root layout
"apply this theme" + JSON Apply — Writes the exported theme values permanently into your CSS file
"remove theme editor" Remove — Deletes all injected files and cleans up imports. Keeps the CSS improvements.

Requirements

  • Claude Code CLI
  • A React project with Tailwind CSS v4+
  • CSS file using @theme inline {} or @theme {} with CSS variables

Install

In Claude Code, run:

/plugin add madebysan/theme-editor

Or install manually:

git clone https://github.com/madebysan/theme-editor.git
cp -r theme-editor/skill ~/.claude/skills/theme-editor

Usage

  1. Open a React + Tailwind v4 project in Claude Code
  2. Type /theme-editor
  3. Refresh your browser — paintbrush icon appears in the bottom-left corner
  4. Click to open the editor popover
  5. Tweak colors, fonts, and style tokens
  6. When happy, export as JSON and say "apply this theme" to make it permanent
  7. Say "remove theme editor" to clean up the injected files
What's inside
skill/
├── SKILL.md                    # Skill instructions (what Claude reads)
├── assets/                     # Template files injected into your project
│   ├── ThemeDrawer.tsx         # Main floating popover UI
│   ├── ColorControl.tsx        # Color picker with hex input
│   ├── FontControl.tsx         # Font input with Google Fonts auto-loading
│   ├── RangeControl.tsx        # Range slider for numeric tokens
│   ├── ChoiceControl.tsx       # Segmented button group
│   ├── ThemeExportImport.tsx   # Export CSS/JSON, import JSON
│   ├── useTheme.ts             # State management with undo/redo
│   ├── theme-defaults.ts      # Token definitions (generated per project)
│   ├── theme-presets.ts        # 14 presets, 10 font pairings, 6 style combos
│   ├── theme-storage.ts       # localStorage persistence
│   └── theme-apply.ts         # CSS variable application
└── references/                 # Reference docs for the Apply phase
    ├── variable-catalog.md     # All shadcn CSS variables
    └── css-patterns.md         # CSS pattern detection guide

License

MIT


Made by santiagoalonso.com

About

A Claude Code skill that injects a floating visual theme editor into React + Tailwind CSS v4 projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages