@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

Badge

atoms

The single pill: semantic tones or any colour for state, mono for metadata, removable or action-bearing for tags, numeric for counters.

See also DotToggleCalloutMetric

Fleet status row

tone for health, dot for a live indicator, mono for a region, numeric for a counter and removable tags on a filter bar.

Filters region:eu-west-1 role:worker
api-gateway eu-west-1
23% healthy
worker-02 eu-west-1
87% degraded
cache-01 us-east-1
4% down
postgres-primary eu-west-1
38% healthy

Tones, sizes and shapes

tone or color sets the tint; border={false} is the soft fill; variant="solid" fills the pill with the tone; variant="text" drops the chip; size xs, sm, md; uppercase, mono, dot and icon decorate.

neutral ok warn danger info accent muted violet color
neutral ok warn danger info accent muted violet
xs sm md 8 128 1024
stable ~/projects/tsumikit text · 12:34 passed system pending
neutral ok warn danger info accent muted violet color

Interactive, removable, removed and overflowing

as="button" with active for a toggle, href for a link, removable with onremove, actionIcon for another trailing action, removed for a restorable tag, truncate with maxWidth.

repository
API_KEY DATABASE_URL SENTRY_DSN
a very long account name that clips feature/very-long-branch-name-that-clips A block badge fills its row, for a banner-like notice

Tone × style matrix

Regression fixture: every tone as outlined chip, soft fill, text variant and active button.

neutral soft text dot 42
ok soft text dot 42
warn soft text dot 42
danger soft text dot 42
info soft text dot 42
accent soft text dot 42
muted soft text dot 42
violet soft text dot 42

Props

PropTypeDefaultDescription
tone Tone'neutral'
color string—Any CSS colour (or var()) for a one-off tint; overrides `tone`.
as 'span' | 'button' | 'a''span'
href string—Renders an anchor (implies `as="a"`).
external booleanfalseOpens in a new tab with a trailing arrow glyph.
size 'xs' | 'sm' | 'md''md'`xs` is the densest form for counters in tight rows.
variant 'chip' | 'text' | 'solid''chip'`text` drops the chip (no fill, ring or padding) but keeps badge typography and tint — for mono metadata that must not read as a pill. `solid` fills the pill with its tone (accent when there is none).
mono booleanfalse
uppercase booleanfalseUppercase, letter-spaced label — for status tags/eyebrows.
numeric booleanfalseTabular digits with a minimum width so counters don't jitter.
truncate booleanfalseClip long content with an ellipsis instead of overflowing.
maxWidth string—
border booleantrueBorderless "soft" variant: tone-tinted fill pill with no ring. The default (`true`) keeps the outlined look for backwards compatibility.
active booleanfalseInteractive "on" state for a toggle/count badge (`as="button"`): fills the pill with its tone instead of just tinting the border.
dot booleanfalseLeading status dot in the badge colour.
icon IconName—
removable booleanfalse
onremove (e: MouseEvent) => void—
actionIcon IconName—Trailing action glyph; renders the action button even without `removable`.
actionLabel string—Accessible name for the action button (defaults to "Remove").
onaction (e: MouseEvent) => void—
removed booleanfalseMuted, struck-through look for an entry pending removal.
class string''
grow booleanfalseFill the free space of a flex row (`flex: 1 1 0`).
shrink booleantrue`false` pins the box (`flex: none`) so a flex row cannot squeeze it.
block booleanfalseFull-width block.
children Snippet—
MIT · @dorsk/tsumikit