A UI design system for AI coding assistants. Guides Claude Code, Cursor, and OpenCode to build distinctive, accessible interfaces—not generic AI slop.
curl -fsSL https://raw.githubusercontent.com/jshmllr/tokyn/main/install.sh | bashAuto-detects Claude Code, Cursor, and OpenCode. Installs rules, skills, commands, patterns, and tokens.
Options:
# Full install (default) - everything
curl -fsSL .../install.sh | bash
# Enhancement mode - no tokens (for shadcn/ui projects)
curl -fsSL .../install.sh | bash -s -- --enhancement
# Minimal - rules and commands only
curl -fsSL .../install.sh | bash -s -- --minimal
# Single tool
curl -fsSL .../install.sh | bash -s -- --cursor-only
curl -fsSL .../install.sh | bash -s -- --claude-onlyAn opinionated UI design system and implementation playbook focused on interaction finesse, typography, and component standards for high-clarity product interfaces.
A practical, implementation-focused reference for building high-polish UI:
- Shadow borders that align perfectly with element size
- Realistic shadow stacks with negative spread
- Inner highlights and reflections for dark mode
- Concentric radii, macOS-style buttons, glass surfaces
- Gradient and texture techniques for backgrounds
- Detailed table, form, and component refinements
- Typography, color, spacing, and process heuristics
Use this like a mini design system guideline for both Figma and code.
-
Shadow and Border Systems
1.1 Shadow Borders with Negative Spread (CSS / Tailwind)
1.2 Natural Shadow Stacks with Negative Spread
1.3 Inner Shadows as Borders (Figma and CSS)
1.4 Transparent / Soft Borders Instead of Solid Strokes
1.5 Colored (Saturated) Shadows
1.6 Text Shadows for Legibility
1.7 Dark Mode Depth and Reflection -
Surface and Shape Detailing
2.1 Inner Highlights for Dark Containers
2.2 Concentric Border Radius
2.3 macOS-style Micro-shadow Buttons
2.4 Glass / Frosted Buttons and Panels
2.5 3D / Glossy Surfaces (Folded, Glossy, Gemstone, 3D Lines)
2.6 Icon and Avatar Framing
2.7 Color Strips and Panel Accents -
Backgrounds, Patterns, and Texture
3.1 Noise Overlays
3.2 Ultra Gradients and Blob Blends
3.3 Grid Backgrounds via Masking
3.4 Wavy Line Textures
3.5 Blurred Logo or Shape Backgrounds
3.6 Dotted Patterns with Randomized Opacity
3.7 Image and Illustration Fades
3.8 Bleeding Images Out of Containers -
Components, Layout, and Micro-interactions
4.1 Table and Data UI Refinement
4.2 Dropdowns, Toasts, and Modal Stacks
4.3 Secondary Button and Input Styles
4.4 Checkbox and Radio Label Hierarchy
4.5 Avoid Border-heavy Layouts -
Typography, Color, Spacing, and Process Heuristics
5.1 Typography & Copy
5.2 Color Systems
5.3 Spacing and Layout
5.4 Product & UX Principles
5.5 Practice and Workflow
- UI Checklist — Comprehensive checklist for reviewing and validating UI designs (from ShiftNudge)
This playbook works in two modes depending on your project:
| Your Project | Mode | What You Get |
|---|---|---|
| Greenfield (no component library) | Standalone | Full foundation: tokens, patterns, theming |
| Using shadcn/ui, Radix, Headless UI, etc. | Enhancement | Guidance layer: elevation, extension patterns |
The AI automatically detects which mode to use based on your project structure.
For new projects without an existing component library:
- Copy or reference
/tokens/for design tokens - Follow
/patterns/composition.mdfor DRY component architecture - Use
/patterns/theming.mdfor theme setup - Reference
/docs/for visual techniques
tokens/
├── primitives.css # Raw values (spacing, colors, typography)
├── semantic.css # Theme-aware aliases (light/dark)
└── index.css # Single import with base styles
For projects using shadcn/ui, Radix, or similar:
- Keep using the library's token system
- Follow
/patterns/extension.mdfor wrapping components - Use
/patterns/elevation.mdto transcend defaults - Reference
/docs/for polish techniques
Key insight: Component libraries solve "how to build consistent components." This playbook solves "how to make them exceptional."
The playbook guides AI assistants through a structured process:
Phase 1: Context → Run `teach-impeccable` to establish design direction
Phase 2: Foundation → Set up tokens (Standalone) or use library patterns (Enhancement)
Phase 3: Building → Consult skills, rules, and docs for every component
Phase 4: Refinement → Run `polish` → `audit` → `rams` commands
Phase 5: Quality → Complete `ui-checklist.md` before shipping
This playbook supports three AI coding assistants:
| Tool | Config Location | Skills | Commands |
|---|---|---|---|
| Claude Code | ~/.claude/skills/, ~/.claude/commands/ |
5 skills | 17 commands |
| Cursor | .cursor/rules/, .cursor/commands/, .cursor/skills/ |
1 skill | 18 commands |
| OpenCode | .opencode/rules/, .opencode/commands/ |
— | 18 commands |
| Skill | Description |
|---|---|
tokyn-workflow |
Master workflow with mode detection |
interface-guidelines |
Accessibility and interaction rules |
frontend-design |
Aesthetic direction, anti-patterns |
design-review |
Accessibility and visual design audits |
design-polish |
Final refinement checklist |
Commands from Impeccable for systematic UI workflows:
| Command | Purpose |
|---|---|
teach-impeccable |
Design context gathering (run first) |
rams |
Accessibility and design review |
polish |
Final refinement pass |
audit |
Design review and assessment |
animate |
Motion design and transitions |
adapt |
Responsive design adaptation |
bolder |
Visual emphasis and hierarchy |
quieter |
Visual noise reduction |
clarify |
UX clarity and communication |
colorize |
Color system development |
critique |
Design feedback and iteration |
delight |
Micro-interactions and joy |
extract |
Design token extraction |
harden |
Error handling and edge cases |
normalize |
Consistency enforcement |
onboard |
Onboarding flow design |
optimize |
Performance optimization |
simplify |
Complexity reduction |
Component architecture and theming documentation:
| Pattern | Mode | Purpose |
|---|---|---|
| extension.md | Enhancement | Wrapping components, token extension |
| elevation.md | Enhancement | Transcending library defaults |
| composition.md | Standalone | DRY principles, variant props |
| theming.md | Standalone | Theme architecture, dark mode |
- Rams — AI design engineer for accessibility and visual design review
- Vercel Design Guidelines — Vercel's design system documentation
- Claude Code Frontend Design Skill — Anthropic's frontend design principles
- Impeccable — Source of the Cursor commands