@dorsk/tsumikit

Svelte 5 · pure CSS · zero deps
AppShell Principles
v0.101.0
Foundations
Typography 5 ThemeTokens 5 Theming 3 TextScaling 3 Breakpoints 1
Atoms
Artwork 3 Avatar 3 Badge 4 Button 8 Card 6 Checkbox 4 Divider 3 Dot 3 Gauge 4 Heading 3 Icon 4 Input 4 Kbd 3 Link 5 Progress 5 Scrim 3 SegmentedProgress 3 Select 3 Skeleton 5 Slider 3 Spinner 4 Swatch 3 Switch 4 Text 5 Textarea 5 Thinking 2 TimeDisplay 3
Molecules
Accordion 3 AttachmentList 3 Breadcrumb 3 ButtonGroup 3 Callout 3 CapBar 3 Carousel 3 ChatBubble 4 CodeBlock 4 Combobox 3 Composer 3 ConfirmModal 3 CopyButton 4 Disclosure 4 Drawer 3 Dropzone 3 EmojiPicker 3 EmptyState 4 Field 4 Fieldset 4 FileButton 3 FilterChips 6 FilterInput 4 FontScalePicker 3 GitRef 3 GlyphStack 3 IconButton 4 InputGroup 3 KeyValue 3 LoadMore 3 LookPicker 3 Menu 4 Meter 4 Metric / StatTile 4 Modal 3 MotionSettings 3 NotificationItem 2 OptionButton 3 Pagination 4 Popover 3 Prose 6 PullToRefresh 3 RadialMenu 3 RadioGroup 4 RichSelect 3 SectionHeader 3 SeekSlider 4 SegmentedControl 7 SelectButton 3 SortableList 4 SoundSettings 3 SplitButton 3 StatusBar 3 SwipeRow 3 Tabs 6 ThemePicker 3 Timestamp 3 Toaster 6 Toggle 3 Tooltip 3 Truncate 3 VolumeSlider 3 WorkingDir 3
Organisms
ConversationFeed 3 ConversationPanel 3 DataTable 9 FilterSearchBar 4 NotificationCenter 5
Layouts
AppShell 3 Backdrop 3 Container 3 Stack 4 Cluster 4 AutoGrid 3 MasterDetail 4 ResizablePanel 4 NavSection 3 NavItem 4 NavBar 4 TabBar 4 Toolbar 5

ThemeTokens

foundations

The semantic CSS custom properties every theme defines: surfaces, text, borders, status colours, spacing, radius and shadow.

See also ThemingSwatchThemePicker

Semantic colours

Each swatch paints var(--token) live, so switching the theme in the toolbar re-colours this grid; the resolved value is read a frame after the switch, once the new theme has painted.

--bg Page background
--bg-elevated Raised surface
--bg-elevated-2 Second elevation
--surface Card surface
--border Hairline
--border-strong Emphasised border
--text Body text
--text-muted Secondary text
--text-faint Placeholder, disabled
--accent Brand accent
--text-on-accent Text on accent
--link Links
--ok Success
--info Info
--warn Warning
--danger Danger

Raw palette

The --c-* hues a theme is built from; components use the semantic tokens above, apps reach for these only for charts and custom tints.

blue
teal
green
gold
amber
red
violet
accent
accent-dim

Spacing, radius and shadow

--sp-* is a 4px-based scale, --r-* the corner radii, --shadow-* the three elevations; all are plain CSS lengths you can use in your own rules.

--sp-px --sp-0-5 --sp-1 --sp-2 --sp-3 --sp-4 --sp-6 --sp-8 --sp-10 --sp-12
r-xsr-smr-mdr-lgr-pill
shadow-smshadow-mdshadow-lg

Accent vs status

One accent for the primary action, active item and focus; green, amber and red are for status only. The grid scopes each [data-theme] so every palette is compared at once.

Deployed Degraded Failed
Action OK Warn Fail Light
Action OK Warn Fail High Contrast Light
Action OK Warn Fail Gruvbox Light
Action OK Warn Fail Solarized Light
Action OK Warn Fail Everforest Light
Action OK Warn Fail Rosé Pine Dawn
Action OK Warn Fail Catppuccin Latte
Action OK Warn Fail Nord Light
Action OK Warn Fail Tokyo Night Day
Action OK Warn Fail Kanagawa Lotus
Action OK Warn Fail Sepia
Action OK Warn Fail Stone
Action OK Warn Fail Fog
Action OK Warn Fail Sage
Action OK Warn Fail Dark
Action OK Warn Fail Color-blind safe
Action OK Warn Fail Catppuccin Mocha
Action OK Warn Fail Dracula
Action OK Warn Fail Nord
Action OK Warn Fail Tokyo Night
Action OK Warn Fail Gruvbox
Action OK Warn Fail Solarized Dark
Action OK Warn Fail Rosé Pine
Action OK Warn Fail One Dark
Action OK Warn Fail Everforest
Action OK Warn Fail Monokai
Action OK Warn Fail AMOLED (high contrast)
Action OK Warn Fail Slate
Action OK Warn Fail Moss
Action OK Warn Fail Espresso
Action OK Warn Fail Zenburn

Text levels

Three levels per theme: --text for titles and values, --text-muted for labels and secondary text (at least 4.5:1), --text-faint only for WCAG-exempt text such as placeholders, disabled controls and separator glyphs (about 3:1, visibly quieter than muted).

Light Value 1,284 Label · secondary Placeholder
High Contrast Light Value 1,284 Label · secondary Placeholder
Gruvbox Light Value 1,284 Label · secondary Placeholder
Solarized Light Value 1,284 Label · secondary Placeholder
Everforest Light Value 1,284 Label · secondary Placeholder
Rosé Pine Dawn Value 1,284 Label · secondary Placeholder
Catppuccin Latte Value 1,284 Label · secondary Placeholder
Nord Light Value 1,284 Label · secondary Placeholder
Tokyo Night Day Value 1,284 Label · secondary Placeholder
Kanagawa Lotus Value 1,284 Label · secondary Placeholder
Sepia Value 1,284 Label · secondary Placeholder
Stone Value 1,284 Label · secondary Placeholder
Fog Value 1,284 Label · secondary Placeholder
Sage Value 1,284 Label · secondary Placeholder
Dark Value 1,284 Label · secondary Placeholder
Color-blind safe Value 1,284 Label · secondary Placeholder
Catppuccin Mocha Value 1,284 Label · secondary Placeholder
Dracula Value 1,284 Label · secondary Placeholder
Nord Value 1,284 Label · secondary Placeholder
Tokyo Night Value 1,284 Label · secondary Placeholder
Gruvbox Value 1,284 Label · secondary Placeholder
Solarized Dark Value 1,284 Label · secondary Placeholder
Rosé Pine Value 1,284 Label · secondary Placeholder
One Dark Value 1,284 Label · secondary Placeholder
Everforest Value 1,284 Label · secondary Placeholder
Monokai Value 1,284 Label · secondary Placeholder
AMOLED (high contrast) Value 1,284 Label · secondary Placeholder
Slate Value 1,284 Label · secondary Placeholder
Moss Value 1,284 Label · secondary Placeholder
Espresso Value 1,284 Label · secondary Placeholder
Zenburn Value 1,284 Label · secondary Placeholder
MIT · @dorsk/tsumikit