Back to UI/UX Design

Svelte UI Design System

sveltetailwindui-designbits-uiskeleton-labs
📄 MIT🕒 2025-11-18Source ↗

Install this skill

npx skills add XIYO/zheon

Works 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

  1. Identify the required headless functionality via Bits UI
  2. Apply Skeleton Labs presets to define the base theme look
  3. Compose class names using the 1000-sum color pairing logic
  4. Use Svelte 5 class directives for dynamic state-based styling
  5. 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

Why is the 1000-sum rule important for colors?
It ensures color contrast and visual balance between background and text/element shades, maintaining consistency across light and dark modes.
Can I use standard Tailwind CSS classes alongside Skeleton presets?
Yes, standard Tailwind utilities are encouraged for layout and spacing, provided they respect the design system's tokenized theme.
Which headless library should I use for interactive elements?
Always use Bits UI components to ensure full accessibility and logical control over component states.

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

📄 MIT🕒 Updated 2025-11-18🛡 no risky patterns found

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
The Svelte UI Design System streamlines component development by combining Svelte 5, Tailwind CSS 4, Skeleton Labs, and Bits UI. It enforces a strict, consistent visual language across projects by providing standardized color pairings, preset design tokens, and headless component structures. By strictly adhering to the 1000-sum shade rule for color pairings and utilizing pre-built Tailwind classes for common elements like cards, badges, and chips, it eliminates the need for arbitrary styling decisions. This framework empowers developers to maintain high accessibility standards while rapidly building interactive forms, complex overlays, and responsive layouts. It bridges the gap between raw Tailwind utilities and a cohesive design language, ensuring your Svelte application remains modular, themed, and professional without the overhead of manual CSS tuning or fragmented class naming.
By XIYO

How to Use This Skill Unit

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/skills/svelte-ui-design/
  3. Save the file as SKILL.md
  4. 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

Read the Master Guide: Mastering Agent Skills →

Recommended Rules

View more rules →

Recommended Workflows

View more workflows →

Recommended MCP Servers

View more MCP servers →

Take It Further

Maximize your productivity with these powerful resources

📋

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
📖

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide

How to use this Skill in Claude Code & Cursor

For Claude Code (CLI)

To use this skill in Claude Code, copy the rule content into your project's custom instructions or follow our Add-Skill CLI guide. This ensures Claude follows your standards during every code generation.

For Cursor & Windsurf

For Cursor or Windsurf, individual skills are best used in the "Rules for AI" section. This specific unit helps the agent avoid ui/ux design issues, leading to cleaner, more efficient code.

Why the skill format matters: the standardized Agent Skills format lets your AI agent load detailed instructions only when they are relevant, keeping your prompt clean while improving results.

Source & attribution

This skill is categorized under UI/UX Design and is published by XIYO, maintained in XIYO/zheon.

← Browse All Agent Skills