SWIVEL · DESIGN SYSTEM · 01

Colors & Tokens.

Brand palette, semantic states, graphite + slate scales, surfaces, spacing, radius, and the 4px / 12-column grid.

01

Colors & Tokens

Foundational palette, spacing, and surface system
BRAND COLORS
BG
#D6FEFF
BASE
#A8F8FF
CONTRAST
#0097A7
BG
#1F4A4E
BASE
#A8F8FF
CONTRAST
#00E5FF
SWITCH
color/switch
BG
#6B7170
BASE
#131514
CONTRAST
#000000
BG
#B8BAB9
BASE
#F2F3F2
CONTRAST
#131514
GRAPHITE
color/graphite
BG
#DCE8F5
BASE
#637D9C
CONTRAST
#1A2D42
BG
#1E3048
BASE
#7B9BBF
CONTRAST
#A8C5E8
SLATE
color/slate
BG
#FFFFFF
BASE
#F5F5F5
CONTRAST
#9E9E9E
BG
#E0E0E0
BASE
#CACBCA
CONTRAST
#BDBDBD
WHITE
color/white
SEMANTIC COLORS
LIGHT
#E0F7E4
BASE
#46975B
CONTRAST
#1E522D
BG
#17321E
BASE
#449E5D
CONTRAST
#A8CEAF
SUCCESS
color/success · text #2C7441 / #6AAD79
LIGHT
#FFEDDB
BASE
#BE7811
CONTRAST
#673F04
BG
#3C260D
BASE
#C77D0D
CONTRAST
#E2BC93
WARNING
color/warning · text #915905 / #D19247
LIGHT
#EAF0FF
BASE
#6A85D2
CONTRAST
#354676
BG
#212A44
BASE
#6F8AD7
CONTRAST
#B3C3EB
INFO
color/info · text #4D63A5 / #849DDF
LIGHT
#FEEBE9
BASE
#D9635D
CONTRAST
#7A2F2C
BG
#41211E
BASE
#DF6862
CONTRAST
#F1B2AC
ERROR
color/error · text #AA4441 / #E8827A
GRAPHITE SCALE · 10 (lightest) → 90 (base)
SLATE SCALE · 10 (lightest) → 100 (base) → 150 (deepest)
SURFACE HIERARCHY
CANVAS
--surface-canvas
#FCFCFC
BASE
--surface-base
#FFFFFF
INPUT
--surface-input
#FFFFFF
MUTED
--surface-muted
#F0F1F0
BORDER
--surface-stroke
#D4D6D5
RAISED
--surface-base
+ --elev-2
INVERSE
--graphite-90
#131514
CANVAS
--surface-canvas
#131514
BASE
--surface-base
#1E2120
INPUT
--surface-input
#1E2020
MUTED
--surface-muted
#1A1C1B
BORDER
--surface-stroke
#2C3030
RAISED
--surface-base
+ --elev-2
INVERSE
--graphite-90
#F2F3F2
INTERACTIVE AND ROLE COLOURS · LIGHT · DARK
--link
#496374 · #00E5FF
Link and primary-name text. Dark value (switch-contrast); light is #496374 (slate-120). Measured 10.55:1 card / 8.69:1 row-hover dark, 6.32:1 / 5.09:1 light.
--link-hover
#3C5660 · #A8F8FF
Link hover. Dark value (switch-100); light is #3C5660 (slate-130). Measured 13.56:1 card / 11.16:1 row-hover dark, 7.80:1 / 6.28:1 light.
--identity-bg
#DCE8F5 · #1F4A4E
Identifying tint fill: type plates, avatars next to names, object badges. Slate in light, switch in dark.
--identity-fg
#637D9C · #00E5FF
Glyph and text on --identity-bg.
--selected-fg-strong
#1A2D42 · #A8F8FF
Label on a selected tint: menu row, chip, listbox option, button-group hover. The strongest shade of the tint's hue: slate-contrast in light, switch-100 in dark.
--switch-track-accent
#637D9C · #A8F8FF
Track fill of an on .switch.accent. Slate in light, switch-100 in dark; the default on track is --btn-primary-bg.
--btn-primary-bg
#637D9C · #00E5FF
Dark value (switch-contrast); light is slate-100 (#637D9C).
--btn-primary-bg-hover
#567088 · #A8F8FF
Dark value (switch-100); light is slate-110 (#567088).
--btn-primary-fg
#FFFFFF · #131514
Dark value (graphite-contrast, near-black); light is white. Switch-cyan fill needs dark ink in both themes once it becomes the CTA color in dark mode.
SPACING TOKENS · 4PX GRID
--space-sm
4px
Tight gaps, icon spacing, vertical button padding.
--space-md
8px
Nav entries, section padding.
--space-lg
12px
Horizontal button padding, alert/dialog inset.
--space-xl
16px
Input horizontal inset.
--space-xxl
20px
Page/section header top padding.
--space-3xl
24px
Card padding (.card); desktop and tablet grid gutters.
--space-4xl
32px
Not used by components.
--space-5xl
40px
Sub-table row indent, under the parent's leading cell.
--space-section
64px
Page padding and the gap between page sections on showcase pages.
RADIUS TOKENS
--radius-none
0
No rounding.
--radius-xs
2px
Leading platform icons in select-menu rows.
--radius-sm
4px
Default radius for every surface and control: buttons, button groups, inputs, badges, cards, KPI cards, tables, menus, popovers, alerts.
--radius-md
6px
Not used by components.
--radius-lg
8px
Chat bubbles (.as-bubble) and modals (.modal) only.
--radius-xl
12px
Not used by components.
--radius-full
9999px
Chips and pills.
LAYOUT · 4px grid & 12-col system

Base unit · 4px

Every spacing, sizing, and offset value snaps to a multiple of 4px. The spacing scale above (sm 4 · md 8 · lg 12 · xl 16 · xxl 20 · 3xl 24) is just the most-used steps on that grid. When something doesn't fit a token, pick the next 4px multiple — never invent a 5px, 7px, or 14px gap.

0163248648096

12-column grid

Page bodies are laid out on a 12-column grid with 24px gutters. Every layout choice — full-width hero, two-column form, sidebar + main — picks an integer span. The most-used patterns are 8+4 (content + meta), 9+3 (content + side rail), 6+6 (split), and 12 (full-bleed).

01
02
03
04
05
06
07
08
09
10
11
12
span 8 · content
span 4 · meta
span 9 · main
span 3 · rail
span 6 · left
span 6 · right

Gutter behavior

Inter-column gutters are fixed at 24px on desktop and tablet, 16px on mobile. Outer page padding scales with viewport width. Never set a gutter at any other value — if columns feel too close, change the span ratio, don't loosen the gutter.

Mobile
16px
Tablet
24px
Desktop
24px

Container widths

Page content sits inside a centered container that maxes out at the breakpoint below. Above the largest breakpoint, the container stops growing and gutters absorb the extra space. App shells (left nav + main) take the full viewport; documentation pages cap at lg (1280).

xs ≥ 0
mobile · fluid 100%
sm ≥ 768
tablet portrait
md ≥ 1024
tablet landscape
lg ≥ 1280
desktop · default
xl ≥ 1480
app shell · full