svelte-ui-design
π―Skillfrom xiyo/zheon
Crafts Svelte UI designs using Tailwind CSS 4, Skeleton Labs design tokens, and Bits UI headless components for comprehensive, consistent styling.
Installation
npx skills add https://github.com/xiyo/zheon --skill svelte-ui-designSkill Details
ALWAYS use this skill for ANY Svelte component styling, design, or UI work. Svelte 5 UI design system using Tailwind CSS 4, Skeleton Labs design tokens/presets/Tailwind Components, and Bits UI headless components. Covers class composition, color systems, interactive components, forms, overlays, and all visual design.
Overview
# 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
- μ»΄ν¬λνΈ: Bits UI headless μ»΄ν¬λνΈλ§ μ¬μ©
- μ€νμΌλ§:
- Skeleton Labs ν ν°/ν리μ (preset-filled, preset-tonal λ±)
- Skeleton Labs Tailwind Components (card, chip, badge, placeholder λ± - ν΄λμ€ μ‘°ν©)
- Tailwind CSS μ νΈλ¦¬ν°
- Skeleton μμ/ν리μ : λ°λμ 곡μ λ¬Έμ μ°Έκ³ , μ§μ shade μ‘°ν© λ§λ€μ§ λ§ κ²
- Progressive disclosure: νμν λ¬Έμλ§ μ°Έμ‘°
- 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
class="bg-(--brand-color)" style:--brand-color={dynamicValue}> ``` ```svelte import { Dialog } from "bits-ui"; Open 'card preset-filled-surface-50-950', 'p-8 rounded-xl shadow-xl' ]}> Title ```Usage Pattern
Best Practices