Skip to content
Likable Aurora @likable-hair/svelte 5

Tokens

The --global-* variables define the look of every component and of the app. A theme changes their values; components stay the same.

Values of the default Aurora theme. Every color has a light and a dark value (light-dark()): the mode follows the operating system and setMode() forces it. Derived tokens (-strong, -soft, -glow, focus ring, fills) are computed from the base color: if you change --global-color-primary, they follow. --global-fill-* are backgrounds that carry text: text on them (on-*) meets WCAG AA contrast.

src/lib/css/tokens.css · Markdown for LLMs

Surfaces

--global-color-bg
--global-color-bg-2
--global-color-surface
--global-color-surface-2
--global-color-surface-3
--global-color-surface-solid
--global-color-surface-pop
--global-color-border
--global-color-border-strong

Text

--global-color-text
--global-color-text-2
--global-color-text-3

Brand

--global-color-primary
--global-color-primary-strong
--global-color-primary-soft
--global-color-primary-glow
--global-color-on-primary
--global-color-accent
--global-color-accent-soft

States

--global-color-success
--global-color-success-soft
--global-color-warning
--global-color-warning-soft
--global-color-error
--global-color-error-soft
--global-color-error-glow
--global-color-on-success
--global-color-on-warning
--global-color-on-error

Data

--global-color-data-1
--global-color-data-2
--global-color-data-3
--global-color-data-4
--global-color-data-5
--global-color-data-6

Fills

--global-gradient
--global-gradient-soft
--global-fill-primary
--global-fill-error
--global-fill-gradient

Shape

1
--global-radius-scale
--global-radius-xs
--global-radius-sm
--global-radius-md
--global-radius-lg
--global-radius-xl
--global-radius-full
1px
--global-border-width

Elevation

--global-shadow-sm
--global-shadow-md
--global-shadow-lg
--global-shadow-fill
3px
--global-focus-ring-width
0px
--global-focus-ring-offset
--global-focus-ring-color
--global-color-overlay
8px
--global-overlay-blur

Inputs

36px
--global-input-height
12px
--global-input-padding-x
8px
--global-input-gap
14px
--global-input-font-size
--global-input-radius
var(--global-border-width)
--global-input-border-width
--global-input-background
--global-input-color
--global-input-placeholder-color
--global-input-icon-color
--global-input-border-color
--global-input-hover-border-color
--global-input-focus-border-color
--global-input-focus-ring-color
--global-input-shadow
--global-input-disabled-background
0.6
--global-input-disabled-opacity
--global-input-error-color
--global-input-success-color
--global-input-label-color
12.5px
--global-input-label-font-size
500
--global-input-label-font-weight
--global-input-hint-color
12px
--global-input-hint-font-size

Typography

Aa Likable
--global-font-family
Aa Likable
--global-font-family-display
Aa Likable
--global-font-family-mono

Motion

cubic-bezier(0.2, 0.8, 0.2, 1)
--global-ease
cubic-bezier(0.2, 0.8, 0.2, 1)
--global-ease-spring
0.18s
--global-duration-fast
0.25s
--global-duration
0.4s
--global-duration-slow

Fonts

The library does not download fonts: the tokens --global-font-family, --global-font-family-display and --global-font-family-mono name Geist, Bricolage Grotesque and Geist Mono, falling back to the system font. For the Aurora look the app loads them itself, for example from Google Fonts in the <head>. When self-hosting, declare the same families with @font-face, or change the tokens to your own fonts.

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Geist:wght@400..700&family=Geist+Mono:wght@400..600&display=swap" />

Themes

Import the theme CSS and activate it with setTheme('name'). Try them on the Themes page or with the picker at the bottom right.

  • aurora — default theme, in tokens.css.
  • classic