Design system

The saturnforest tokens and components. Every swatch and control below renders from @saturnforest/ui, so changes to the package show up here first.

Surfaces

Background tokens, from page canvas to inverted contrast. Use them as bg-sf-<name>.

canvas
Page background
elevated
Raised panels
recessed
Sunken wells
base
Cards, header, footer
tint
Hover fill
control
Inputs and buttons
overlay
Menus and popovers
fill
Neutral fills
interact
Pressed states
contrast
Inverted surfaces
line
Control borders
hairline
Card and section borders

Text

Foreground tokens. Use them as text-sf-<name>.

Headingsstrong
Body textdefault
Labels, secondary textsubtle
Input placeholdersplaceholder
Disabled textinactive
Linkslink
Brand accentbrand
Positive changesuccess
Warningswarning
Errors, negative changedanger

Status

Solid and tinted fills for info, success, warning and danger.

info
success
warning
danger

Type

Inter, set at 14px for body text. The scale is deliberately small and dense.

Heading large, 20px

Heading, 16px

xs 12The quick brown fox jumps over the lazy dog
sm 13The quick brown fox jumps over the lazy dog
base 14The quick brown fox jumps over the lazy dog
lg 16The quick brown fox jumps over the lazy dog

Secondary

Monospace

Error

Inline link

Buttons

Five variants in four sizes. Primary is reserved for the main action on a screen.

Badges

Short labels for status and category.

PrimaryNewSuccessWarningErrorInfoOutlineBeta
HealthyDegradedDownPaused

Banners

Page-level messages.

Update available

A new version is ready to install.

Session expiring

Your session will expire in 5 minutes.

Save failed

Your changes were not saved. Try again.

Form controls

Inputs, selects, checkboxes and switches share one control height and border.

Used for sign-in only.

Billing

Overlays

Menus, dialogs and tooltips.

Patterns

Compositions from the dashboard style. Values below are sample data.

Total requests
54.4k7.0%
Visitors
12.1k3.2%
Cache hit rate
18.9%19.7%
Errors
10.0%
Getting started

A LayerCard groups a label with its content.

Settings

A LayerCard groups a label with its content.

Billing

A LayerCard groups a label with its content.