@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

Modal

molecules

Dialog on the native <dialog>: top layer, focus trap, Escape and click-outside, four width presets, tones, busy state and optional resizing.

See also ConfirmModalDrawerPopoverToaster

Edit profile

bind:open controls visibility; body and footer snippets; focus lands on the first field and returns to the trigger on close.

Edit profile
Berlin (UTC+1)
Shown on your public card.

Sizes and tones

size sm/md/lg/xl sets the desktop width; tone adds a title glyph and a coloured top border.

Export report (sm)
A sm sheet is 24, 34, 48 or 72rem wide on desktop and full-width on phones.
Export report (md)
A md sheet is 24, 34, 48 or 72rem wide on desktop and full-width on phones.
Export report (lg)
A lg sheet is 24, 34, 48 or 72rem wide on desktop and full-width on phones.
Export report (xl)
A xl sheet is 24, 34, 48 or 72rem wide on desktop and full-width on phones.
Deploy to production
The title glyph and the top border take the neutral colour.
Deploy to production
The title glyph and the top border take the info colour.
Deploy to production
The title glyph and the top border take the ok colour.
Deploy to production
The title glyph and the top border take the warn colour.
Deploy to production
The title glyph and the top border take the danger colour.
Deploy to production
The title glyph and the top border take the accent colour.

Busy, scrolling body, resizable, filled footer

busy blocks Escape and the backdrop; maxHeight scrolls the body; resizeKey adds a desktop drag edge that persists; footerFill hands the footer one wide layout.

Rotate credentials
While busy the body is inert and Escape, the backdrop and the close button wait until the work settles.
Request log
01  worker-02 · GET /v1/jobs · 200 · 120 ms
02  worker-02 · GET /v1/jobs · 200 · 127 ms
03  worker-02 · GET /v1/jobs · 200 · 134 ms
04  worker-02 · GET /v1/jobs · 200 · 141 ms
05  worker-02 · GET /v1/jobs · 200 · 148 ms
06  worker-02 · GET /v1/jobs · 200 · 155 ms
07  worker-02 · GET /v1/jobs · 200 · 162 ms
08  worker-02 · GET /v1/jobs · 200 · 169 ms
09  worker-02 · GET /v1/jobs · 200 · 176 ms
10  worker-02 · GET /v1/jobs · 200 · 183 ms
11  worker-02 · GET /v1/jobs · 200 · 190 ms
12  worker-02 · GET /v1/jobs · 200 · 197 ms
13  worker-02 · GET /v1/jobs · 200 · 204 ms
14  worker-02 · GET /v1/jobs · 200 · 211 ms
15  worker-02 · GET /v1/jobs · 200 · 218 ms
16  worker-02 · GET /v1/jobs · 200 · 225 ms
17  worker-02 · GET /v1/jobs · 200 · 232 ms
18  worker-02 · GET /v1/jobs · 200 · 239 ms
19  worker-02 · GET /v1/jobs · 200 · 246 ms
20  worker-02 · GET /v1/jobs · 200 · 253 ms
21  worker-02 · GET /v1/jobs · 200 · 260 ms
22  worker-02 · GET /v1/jobs · 200 · 267 ms
23  worker-02 · GET /v1/jobs · 200 · 274 ms
24  worker-02 · GET /v1/jobs · 200 · 281 ms
25  worker-02 · GET /v1/jobs · 200 · 288 ms
26  worker-02 · GET /v1/jobs · 200 · 295 ms
27  worker-02 · GET /v1/jobs · 200 · 302 ms
28  worker-02 · GET /v1/jobs · 200 · 309 ms
29  worker-02 · GET /v1/jobs · 200 · 316 ms
30  worker-02 · GET /v1/jobs · 200 · 323 ms
31  worker-02 · GET /v1/jobs · 200 · 330 ms
32  worker-02 · GET /v1/jobs · 200 · 337 ms
33  worker-02 · GET /v1/jobs · 200 · 344 ms
34  worker-02 · GET /v1/jobs · 200 · 351 ms
35  worker-02 · GET /v1/jobs · 200 · 358 ms
36  worker-02 · GET /v1/jobs · 200 · 365 ms
37  worker-02 · GET /v1/jobs · 200 · 372 ms
38  worker-02 · GET /v1/jobs · 200 · 379 ms
39  worker-02 · GET /v1/jobs · 200 · 386 ms
40  worker-02 · GET /v1/jobs · 200 · 393 ms
Query editor
Drag the right edge on desktop. The width is remembered under resizeKey.
Choose a plan
With footerFill the footer owns the whole row, here an AutoGrid of equal actions.

Props

PropTypeDefaultDescription
title required string—
open bindable boolean—Controlled visibility. When provided the `<dialog>` stays mounted and `showModal()`/`close()` follow the value; closing sets it back to false. Omit to open on mount (mount/unmount the component to show/hide).
onclose () => void—
body required Snippet—
footer Snippet—
footerFill booleanfalseLet the footer's content own the full width instead of hugging the right edge — for a footer that is one layout wrapper (an AutoGrid of actions, say) rather than a short row of buttons.
size 'sm' | 'md' | 'lg' | 'xl''md'Desktop width preset (sm 24rem / md 34rem / lg 48rem / xl 72rem). A `resizeKey` drag still overrides it.
tone Tone'neutral'Title glyph + 3px top border in the semantic colour.
busy booleanfalseWork in flight: body is inert, a spinner sits by the title and Escape, backdrop and the close button stop closing until it clears. A close the browser forces (repeated Escape, Android back) still closes and calls `onclose`.
resizeKey string—When set, the sheet is horizontally resizable on desktop and the chosen width persists under this localStorage key.
class string''
style string''
bodyClass string''Class on the inner sheet (the visible panel).
maxHeight string—Cap the sheet height; the body scrolls inside it.
sound booleantruePlay UI sounds when enabled globally; false silences this instance.
MIT · @dorsk/tsumikit