svelte-ui-design
1
总安装量
1
周安装量
#42191
全站排名
安装命令
npx skills add https://smithery.ai
Agent 安装分布
kilo
1
Skill 文档
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 – Skeleton ê°ì
- installation.md – íë ììí¬ë³ ì¤ì¹
- fundamentals.md – íµì¬ ê°ë
- core-api.md – @base, @theme, @utility, @variant
Design System
- colors-design.md – ìì íë í¸ ë° Color Pairings (íì ì°¸ê³ )
- presets-design.md – í리ì ìì¤í (íì ì°¸ê³ )
- themes.md – í ë§ ìì¤í
- typography-design.md – íì´í¬ê·¸ëí¼
- spacing-design.md – ê°ê²© ìì¤í
- iconography.md – ìì´ì½
Tailwind CSS 4
- tailwind-utilities.md – Tailwind CSS 4 ì í¸ë¦¬í°
- tailwind-colors.md – OKLCH ìì
- tailwind-theme.md – CSS @theme ì¤ì
- tailwind-variants.md – ìí variant
Svelte 5
- svelte-class-syntax.md – í´ëì¤ ì¡°í©
Tailwind Components (Skeleton Labs í´ëì¤ ì¡°í©)
í´ëì¤ë¡ ëìì¸ì ëì³ëì 기본 ìì. card, chip, badge, placeholder ë±.
Bits UI – Headless Components
- bits-ui-complete.md – Bits UI 42ê° headless ì»´í¬ëí¸ ìì 문ì
Guides
- dark-mode.md – ë¤í¬ 모ë
- layouts.md – ë ì´ìì
- cookbook.md – ë ìí¼
Migration
- migrate-v2-to-v3.md – v2 â v3
- 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 ì°¸ê³ ):
- í¨í´:
{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 ì°¸ê³ ):
- Filled:
preset-filled-{color}-{lightShade}-{darkShade}ëëpreset-filled-{color}-500 - Tonal:
preset-tonal-{color} - Outlined:
preset-outlined-{color}-{lightShade}-{darkShade}
Svelte 5 Class Composition
<!-- 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
<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
- ì»´í¬ëí¸: Bits UI headless ì»´í¬ëí¸ë§ ì¬ì©
- ì¤íì¼ë§: Skeleton Labs í í°/í리ì + Tailwind Components (card, chip, badge ë±) + Tailwind ì í¸ë¦¬í°
- Skeleton ìì/í리ì : ë°ëì ê³µì 문ì(colors-design.md, presets-design.md)ìì íì¸
- Class ì¡°í© ìì: Tailwind Components â í리ì â ë ì´ìì â ê°ê²© â ì¡°ê±´ë¶ â variant
- ì ê·¼ì±: WCAG ëë¹ ë¹ì¨, focus-visible ìí
- ì±ë¥: Svelte class ë°°ì´/ê°ì²´ ì¬ì©, Skeleton í리ì íì©
- ì¼ê´ì±: ëì¼í ì©ì´ ì¬ì©, 3ì¸ì¹ ìì±