Variant
Palette
Size
Elevation
Rounded

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

PropTypeDefault
variant"flat" | "outlined" | "ghost""ghost"
palette"accent" | "tone" | "neutral" | "error" | "warning" | "success" | "info""tone"
size"sm" | "md" | "lg""md"
elevation"none" | "subtle" | "hard""none"
roundedbooleanfalse
childrenSnippet—
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 boolean
Default false
Prop children
Type Snippet
Default —

AccordionHeader

PropTypeDefault
labelstring—
iconSnippetundefined
openbooleanfalse
disabledbooleanfalse
childrenSnippet—
Prop label
Type string
Default —
Prop icon
Type Snippet
Default undefined
Prop open
Type boolean
Default false
Prop disabled
Type boolean
Default false
Prop children
Type Snippet
Default —