Kumo Svelte
  • Home
  • Installation
  • Colors
  • Accessibility
  • Changelog
  • Autocomplete
  • Badge
  • Banner
  • Breadcrumbs
  • Button
  • Checkbox
  • Clipboard Text
  • Cloudflare Logo
  • CodeHighlighted
  • Collapsible
  • Combobox
  • Command Palette
  • Date Picker
  • Dialog
  • Dropdown
  • Empty
  • Flow
  • Grid
  • Input
  • InputArea
  • InputGroup
  • Label
  • Layer Card
  • Link
  • Loader
  • MenuBar
  • Meter
  • Pagination
  • Popover
  • Radio
  • Select
  • Sensitive Input
  • Sidebar
  • Skeleton Line
  • Switch
  • Table
  • Table of Contents
  • Tabs
  • Text
  • Toast
  • Toolbar
  • Tooltip
  • Charts
  • Colors
  • Timeseries
  • Maps
  • Sankey
  • Custom Chart
  • Page Header
  • Resource List
  • Delete Resource
Colors
kumo-svelte

Colors

Kumo uses semantic color tokens that adapt to mode and theme.

Usage

Always use semantic tokens instead of raw Tailwind colors. This keeps UI consistent across light mode, dark mode, and themes.

Correct

<div class="border-kumo-hairline bg-kumo-base text-kumo-default">
  <button class="bg-kumo-brand text-white">Primary</button>
  <button class="bg-kumo-control text-kumo-default">Secondary</button>
</div>

Incorrect

<div class="bg-white text-black dark:bg-gray-900 dark:text-white">
  <button class="bg-blue-500">Primary</button>
</div>

Mode

Set data-mode on a parent element to control light/dark mode. Avoid dark: variants for Kumo surfaces; semantic tokens handle mode changes.

<html data-mode="light">
<html data-mode="dark">

Themes

Themes override semantic token values while preserving token names. Set data-theme on a parent element to apply a theme.

<div data-theme="fedramp">
  <Button>FedRAMP Styled</Button>
</div>

Semantic Tokens

Tokens are named by role, not hue. Use the token that matches the role of the element.

Surface hierarchy

TokenPurpose
bg-kumo-canvasOutermost page background.
bg-kumo-baseDefault component background.
bg-kumo-elevatedSlightly elevated surface.
bg-kumo-recessedRecessed fill, such as segmented tabs.
bg-kumo-tintSubtle tinted background.
bg-kumo-contrastHigh-contrast inverted background.

Status colors

TokenPurpose
bg-kumo-infoInfo indicator.
bg-kumo-successSuccess indicator.
bg-kumo-warningWarning indicator.
bg-kumo-dangerError/destructive indicator.

Use solid tokens for icons, dots, borders, and rings. Use -tint variants for background fills.

Chart Colors

Dashboard chart colors have their own palette. See Chart Colors.

On this page

  • Usage
    • Correct
    • Incorrect
  • Mode
  • Themes
  • Semantic Tokens
    • Surface hierarchy
    • Status colors
  • Chart Colors