Install this skill
npx skills add XIYO/zheonWorks across Claude Code, Cursor, Codex, Copilot & Antigravity
What this skill does
- β’Strict color pairing management using 1000-sum shade logic
- β’Integration of 42 Bits UI headless components for complex interactions
- β’Pre-built Skeleton Labs design tokens for consistent themes
- β’Efficient class composition patterns for Svelte 5 dynamic styling
- β’Standardized presets for fills, tonals, and outlined elements
When to use it
- βBuilding new Svelte 5 components requiring consistent styling
- βImplementing complex overlays like dialogs, popovers, or menus
- βCreating accessible forms with custom input and selection logic
- βEstablishing a unified visual theme across multiple sub-pages
When not to use it
- βProjects not using Tailwind CSS 4 or Svelte 5
- βPrototypes requiring highly bespoke, non-standard visual identities that break system token rules
How to invoke it
Example prompts that trigger this skill:
- βDesign a new modal dialog using Bits UI and Skeleton stylingβ
- βApply the tonal preset to these cards in my Svelte componentβ
- βCreate a form layout that matches the primary theme colorsβ
- βFix my Tailwind classes to follow the 1000-sum color pairing ruleβ
- βStyle this navigation menu with Bits UI and surface-50-950 tokensβ
Example workflow
- Identify the required headless functionality via Bits UI
- Apply Skeleton Labs presets to define the base theme look
- Compose class names using the 1000-sum color pairing logic
- Use Svelte 5 class directives for dynamic state-based styling
- Validate the component against WCAG accessibility requirements
Prerequisites
- βSvelte 5
- βTailwind CSS 4
- βSkeleton Labs installed
- βBits UI package
Pitfalls & limitations
- !Violating the 1000-sum rule for color shade pairings
- !Manually defining color shades instead of using documented system presets
- !Using non-headless components that conflict with the established UI system
FAQ
How it compares
Unlike manual CSS styling or standard utility-first approaches, this skill enforces a strict design token architecture, preventing visual drift and ensuring accessible, high-performance UI at scale.
Source & trust
From the source: β# Svelte UI Design System Svelte 5 + Tailwind CSS 4 + Skeleton Labs + Bits UI ν΅ν© λμμΈ μμ€ν ## When to Use This Skill **μλ νμ±ν:** - ANY Svelte component creation or modification - ALL styling, design, and UI work in Svelte projects - Component props, layouts, colors, spacing, typography - Forms, buttonβ¦β
View the full SKILL.md source
# Svelte UI Design System
Svelte 5 + Tailwind CSS 4 + Skeleton Labs + Bits UI ν΅ν© λμμΈ μμ€ν
## When to Use This Skill
**μλ νμ±ν:**
- ANY Svelte component creation or modification
- ALL styling, design, and UI work in Svelte projects
- Component props, layouts, colors, spacing, typography
- Forms, buttons, cards, chips, badges, tables, dialogs, overlays
- Animations, transitions, hover effects, responsive design
- Dark mode, themes, conditional styling, dynamic values
## Core Principles
1. **μ»΄ν¬λνΈ**: Bits UI headless μ»΄ν¬λνΈλ§ μ¬μ©
2. **μ€νμΌλ§**:
- Skeleton Labs ν ν°/ν리μ
(preset-filled, preset-tonal λ±)
- Skeleton Labs Tailwind Components (card, chip, badge, placeholder λ± - ν΄λμ€ μ‘°ν©)
- Tailwind CSS μ νΈλ¦¬ν°
3. **Skeleton μμ/ν리μ
**: λ°λμ 곡μ λ¬Έμ μ°Έκ³ , μ§μ shade μ‘°ν© λ§λ€μ§ λ§ κ²
4. **Progressive disclosure**: νμν λ¬Έμλ§ μ°Έμ‘°
5. **1-level deep μ°Έμ‘°**: SKILL.md β reference νμΌλ§
## Available References
### Get Started
- [introduction.md](reference/introduction.md) - Skeleton κ°μ
- [installation.md](reference/installation.md) - νλ μμν¬λ³ μ€μΉ
- [fundamentals.md](reference/fundamentals.md) - ν΅μ¬ κ°λ
- [core-api.md](reference/core-api.md) - @base, @theme, @utility, @variant
### Design System
- [colors-design.md](reference/colors-design.md) - **μμ νλ νΈ λ° Color Pairings** (νμ μ°Έκ³ )
- [presets-design.md](reference/presets-design.md) - **ν리μ
μμ€ν
** (νμ μ°Έκ³ )
- [themes.md](reference/themes.md) - ν
λ§ μμ€ν
- [typography-design.md](reference/typography-design.md) - νμ΄ν¬κ·ΈλνΌ
- [spacing-design.md](reference/spacing-design.md) - κ°κ²© μμ€ν
- [iconography.md](reference/iconography.md) - μμ΄μ½
### Tailwind CSS 4
- [tailwind-utilities.md](reference/tailwind-utilities.md) - Tailwind CSS 4 μ νΈλ¦¬ν°
- [tailwind-colors.md](reference/tailwind-colors.md) - OKLCH μμ
- [tailwind-theme.md](reference/tailwind-theme.md) - CSS @theme μ€μ
- [tailwind-variants.md](reference/tailwind-variants.md) - μν variant
### Svelte 5
- [svelte-class-syntax.md](reference/svelte-class-syntax.md) - ν΄λμ€ μ‘°ν©
### Tailwind Components (Skeleton Labs ν΄λμ€ μ‘°ν©)
ν΄λμ€λ‘ λμμΈμ λμ³λμ κΈ°λ³Έ μμ. card, chip, badge, placeholder λ±.
- [badges.md](reference/badges.md), [buttons.md](reference/buttons.md), [cards.md](reference/cards.md), [chips.md](reference/chips.md)
- [dividers.md](reference/dividers.md), [forms.md](reference/forms.md), [placeholders.md](reference/placeholders.md), [tables.md](reference/tables.md)
### Bits UI - Headless Components
- [bits-ui-complete.md](reference/bits-ui-complete.md) - **Bits UI 42κ° headless μ»΄ν¬λνΈ μμ λ¬Έμ**
### Guides
- [dark-mode.md](reference/dark-mode.md) - λ€ν¬ λͺ¨λ
- [layouts.md](reference/layouts.md) - λ μ΄μμ
- [cookbook.md](reference/cookbook.md) - λ μνΌ
### Migration
- [migrate-v2-to-v3.md](reference/migrate-v2-to-v3.md) - v2 β v3
- [migrate-v3-to-v4.md](reference/migrate-v3-to-v4.md) - v3 β v4
## Bits UI - Headless Components (42κ°)
μμ ν 컀μ€ν°λ§μ΄μ§ κ°λ₯ν unstyled μ»΄ν¬λνΈ. Skeleton Labs ν ν°/ν리μ
μΌλ‘ μ€νμΌλ§.
**μ£Όμ μΉ΄ν
κ³ λ¦¬:**
- Layout: Accordion, Collapsible, Tabs, Separator
- Overlays: Dialog, Popover, Tooltip, Context Menu, Drawer
- Forms: Checkbox, Radio Group, Switch, Slider, Select, Combobox
- Date/Time: Calendar, Date Picker, Date Range Picker, Time Field
- Navigation: Dropdown Menu, Menubar, Navigation Menu, Pagination
- Display: Avatar, Progress, Meter, Badge
- Interactive: Button, Toggle, Link Preview
## Quick Reference
### Skeleton Labs μ€μ κ·μΉ
**Color Pairings** (λ°λμ [colors-design.md](reference/colors-design.md) μ°Έκ³ ):
- ν¨ν΄: `{property}-{color}-{lightShade}-{darkShade}`
- νμ© μ‘°ν©: 50-950, 100-900, 200-800, 300-700, 400-600, **500**, 600-400, 700-300, 800-200, 900-100, 950-50
- κ·μΉ: **λ shadeμ ν©μ΄ 1000** λλ **500 λ¨λ
**
- μ: `bg-surface-50-950`, `text-primary-200-800`
**Presets** (λ°λμ [presets-design.md](reference/presets-design.md) μ°Έκ³ ):
- Filled: `preset-filled-{color}-{lightShade}-{darkShade}` λλ `preset-filled-{color}-500`
- Tonal: `preset-tonal-{color}`
- Outlined: `preset-outlined-{color}-{lightShade}-{darkShade}`
### Svelte 5 Class Composition
```svelte
<!-- Array form -->
<div class={['base', condition && 'extra']}>
<!-- Object form -->
<div class={{ 'active': isActive, 'disabled': !enabled }}>
<!-- Style directive for dynamic values -->
<div
class="bg-(--brand-color)"
style:--brand-color={dynamicValue}>
```
### Usage Pattern
```svelte
<script lang="ts">
import { Dialog } from "bits-ui";
</script>
<Dialog.Root>
<Dialog.Trigger class="btn preset-filled-primary-500">
Open
</Dialog.Trigger>
<Dialog.Content class={[
'card preset-filled-surface-50-950',
'p-8 rounded-xl shadow-xl'
]}>
<Dialog.Title class="h3 text-primary-600-400">
Title
</Dialog.Title>
</Dialog.Content>
</Dialog.Root>
```
## Best Practices
1. **μ»΄ν¬λνΈ**: Bits UI headless μ»΄ν¬λνΈλ§ μ¬μ©
2. **μ€νμΌλ§**: Skeleton Labs ν ν°/ν리μ
+ Tailwind Components (card, chip, badge λ±) + Tailwind μ νΈλ¦¬ν°
3. **Skeleton μμ/ν리μ
**: λ°λμ 곡μ λ¬Έμ([colors-design.md](reference/colors-design.md), [presets-design.md](reference/presets-design.md))μμ νμΈ
4. **Class μ‘°ν© μμ**: Tailwind Components β ν리μ
β λ μ΄μμ β κ°κ²© β μ‘°κ±΄λΆ β variant
5. **μ κ·Όμ±**: WCAG λλΉ λΉμ¨, focus-visible μν
6. **μ±λ₯**: Svelte class λ°°μ΄/κ°μ²΄ μ¬μ©, Skeleton ν리μ
νμ©
7. **μΌκ΄μ±**: λμΌν μ©μ΄ μ¬μ©, 3μΈμΉ μμ±
Quoted from XIYO/zheon for reference β see the original for the authoritative, latest version.
π Full skill instructions β original source: XIYO/zheon
How to Use This Skill Unit
Option A: Project-Specific (Recommended)
- Click "Download" above
- In your project, create the directory:
.agent/skills/svelte-ui-design/ - Save the file as
SKILL.md - The agent will automatically discover the skill based on its description.
Option B: Global Installation (All Agents)
Save the file to these locations to make it available across all projects:
- Claude Code:
~/.claude/skills/XIYO/zheon/svelte-ui-design/SKILL.md - Cursor:
~/.cursor/skills/XIYO/zheon/svelte-ui-design/SKILL.md - Antigravity:
~/.gemini/antigravity/skills/XIYO/zheon/svelte-ui-design/SKILL.md
π Install with CLI:npx skills add XIYO/zheon