A collection of reusable Svelte 5 components built with a token-based theming system. Every component supports palette and variant customization.
Usage
Svelte
<Accordion variant="ghost" palette="tone">
<AccordionHeader label="What is this design system?">
<p>A collection of reusable Svelte components
built with a token-based theming system.</p>
</AccordionHeader>
<AccordionHeader label="How do I install it?">
<p>Clone the repository and run npm install.</p>
</AccordionHeader>
</Accordion> API
Accordion
| Prop | Type | Default |
|---|---|---|
| variant | "flat" | "outlined" | "ghost" | "ghost" |
| palette | "accent" | "tone" | "neutral" | "error" | "warning" | "success" | "info" | "tone" |
| size | "sm" | "md" | "lg" | "md" |
| elevation | "none" | "subtle" | "hard" | "none" |
| rounded | boolean | false |
| children | Snippet | — |
Prop variant
Type
"flat" | "outlined" | "ghost"Default
"ghost"Prop palette
Type
"accent" | "tone" | "neutral" | "error" | "warning" | "success" | "info"Default
"tone"Prop size
Type
"sm" | "md" | "lg"Default
"md"Prop elevation
Type
"none" | "subtle" | "hard"Default
"none"Prop rounded
Type
booleanDefault
falseProp children
Type
SnippetDefault
—AccordionHeader
| Prop | Type | Default |
|---|---|---|
| label | string | — |
| icon | Snippet | undefined |
| open | boolean | false |
| disabled | boolean | false |
| children | Snippet | — |
Prop label
Type
stringDefault
—Prop icon
Type
SnippetDefault
undefinedProp open
Type
booleanDefault
falseProp disabled
Type
booleanDefault
falseProp children
Type
SnippetDefault
—