OGCR Design System
Login

OGCR Design System

Live reference of the tokens defined in src/ogcr-theme.css. Mirrors OGCR Design System (Figma) and the verbatim copy in src/ogcr-design-system-reference.css.

Integration status

The design system is React 19 + Base UI; this app is SvelteKit 5 + Skeleton 4, so none of its components can be imported. We mirror its token values by hand and build the components ourselves. The full record — why we do not install the package, what is pinned to what, and how to re-reconcile — is in design_system_integration.md.

Upstream provenance
Live implementation
https://ogcr-design-system.vercel.app — the official build, and what this page is trying to match
Storybook
https://ogcr-design-system.vercel.app/storybook/ — every component, with live controls
Repo
https://github.com/Maji-Studio/ogcr — monorepo, branch main
Token pin
e947133 — 2026-08-13
Repo HEAD read at
182d425 — 2026-09-07
Last reconciled here
2026-09-22
Predecessor (archived)
https://github.com/Maji-Studio/ogcr-design-system — frozen at 1.0.0 — do not reconcile against it
Figma source
2P6XrQJhT8I39IR5LGK7RT — OGCR – Design System

The pin that matters is the token commit, not the HEAD we happened to read: if nothing has touched packages/design-system/src/styles/ since e947133, these tokens are current however far upstream has moved.

Checking for drift
npm run check:design-tokens

Fetches the published tarball for the pinned version and diffs every token against src/ogcr-design-system-reference.css — all 62 colours plus the spacing, radius, type, elevation, motion and font-family scales. Exit 0 in sync, 1 on drift, 2 if it could not check (offline). It also flags a newer published version than our pin.

On drift, four files move together — the mirror, the named-token block of src/ogcr-theme.css, this page (the values here are display strings), and the drift log in the document. The Skeleton --color-* ramps are derived, not mirrored: only their anchor steps need to agree with upstream.

Not adopted: the shipped stylesheet

Importing styles.css would give us exact tokens, but upstream pins --spacing to 1px globally, where this app uses 0.25rem. That quarters all 1,192 numeric spacing classes across 37 of our 41 Svelte files, and --spacing lives in @theme at the root, so it cannot be scoped to one route. Two more changes land with it: --font-size-m 16 → 18px (taking --text-h4 and --text-body with it), and shadow-elevation-s never existed.

Drift log — 2026-09-22, first reconciliation

The previous mirror claimed to be a verbatim copy of a file that no longer exists upstream (index.css was split into palette.css + theme.css). Diffing it against the real palette:

38
already identical
of 62 colour tokens
5
drifted — corrected
of 62 colour tokens
19
missing — added
of 62 colour tokens
Corrected values
--text-positive #416c51 → #4f8263
--icon-positive #416c51 → #4f8263
--interaction-primary-hover #416c51 → #335641
--interaction-primary-active #416c51 → #335641
--interaction-secondary-focus #e2d0bf → #c3daed

The green moves are upstream's deliberate active-green vs. selection-navy split; the last row is a beige where the brand has light blue. 19 further tokens were simply absent here and have been added (the icon-*-light set, the interaction-secondary-* set, the *-strong borders, surface-progress, scrollbar and z-index tokens).

Non-colour drift
  • Type ladder: --font-size-xs 14px → 10px, --font-size-s 16px → 14px (16px is not on the upstream ladder at all). The one change that can reflow existing markup.
  • --radius-full: 999px → 9999px.
  • --focus-ring-error was removed upstream. Kept here, deprecated, because app code still references it — use --focus-error (the full shadow).

Brand

Brand blue 300
#3f88c6 · --brand-blue-300
Brand blue 800
#1c3d59 · --brand-blue-800
Brand green 500
#6db087 · --brand-green-500

Typography

text-h1 — The quick brown fox
text-h2 — The quick brown fox
text-h3 — The quick brown fox
text-h4 — The quick brown fox
text-body — The quick brown fox jumps over the lazy dog.
text-body-s — The quick brown fox jumps over the lazy dog.
text-label-button
text-label-input

Font sizes

Aa --font-size-xs · 10px
Aa --font-size-s · 14px
Aa --font-size-m · 18px
Aa --font-size-l · 20px
Aa --font-size-xl · 24px
Aa --font-size-2xl · 32px
Aa --font-size-3xl · 40px
Aa --font-size-4xl · 48px
Aa --font-size-5xl · 64px

Colour scales (Skeleton)

These are the scales available via Tailwind/Skeleton classes (bg-primary-500, text-surface-700, …). Anchored to the design system tokens.

Primary (OGCR Blue)
50
100
200
300
400
500
600
700
800
900
950
Secondary (OGCR Green)
50
100
200
300
400
500
600
700
800
900
950
Tertiary (Dark Teal)
50
100
200
300
400
500
600
700
800
900
950
Success
50
100
200
300
400
500
600
700
800
900
950
Warning
50
100
200
300
400
500
600
700
800
900
950
Error
50
100
200
300
400
500
600
700
800
900
950
Surface (warm grays)
50
100
200
300
400
500
600
700
800
900
950

Named tokens

Text

Sample text
--text-primary · #0f3655
Sample text
--text-secondary · #6a8196
Sample text
--text-neutral · #334155
Sample text
--text-positive · #4f8263
Sample text
--text-negative · #b91c1c
Sample text
--text-warning · #c2410c
Sample text
--text-progress · #265277

Surface

--surface-page
#f8f3ef
--surface-light
#ffffff
--surface-neutral
#f5f5f4
--surface-strong
#0f3655
--surface-inverted
#443321
--surface-positive
#e2efe6
--surface-warning
#ffedd5
--surface-negative
#fee2e2
--surface-progress
#e2edf6

Border

--border-light
#e7e5e4
--border-medium
#d6d3d1
--border-strong
#a8a29e
--border-default
#01012e14
--border-high-contrast
#443321
--border-positive-light
#c5dfce
--border-warning-light
#fed7aa
--border-negative-light
#fecaca
--border-negative-strong
#dc2626
--border-neutral-strong
#57534e
--border-positive-strong
#5e9975
--border-warning-strong
#ea580c

Interaction

--interaction-primary-default
#4f8263
--interaction-primary-hover
#335641
--interaction-primary-active
#335641
--interaction-primary-focus
#e2efe6
--interaction-secondary-default
#ffffff
--interaction-secondary-hover
#1c3d59
--interaction-secondary-active
#1c3d59
--interaction-secondary-focus
#c3daed
--interaction-tertiary-active
#e2efe6
--focus-ring-error (deprecated)
#fecaca

Spacing

--space-2xs
4px
--space-xs
8px
--space-s
12px
--space-m
16px
--space-l
24px
--space-xl
32px
--space-3xl
64px

Radius

--radius-xs
2px
--radius-s
4px
--radius-m
8px
--radius-l
12px
--radius-xl
16px
--radius-full
9999px

Elevation

Elevation L
--elevation-l
No elevation
(border only)

Buttons (Skeleton)

Form elements

Cards

Default card

Surface 50, light border, radius L.

Positive

surface-positive + border-positive-light.

Warning

surface-warning + border-warning-light.

Negative

surface-negative + border-negative-light.

Strong

surface-strong (used for hero panels).

Inverted

surface-inverted (warm dark).

Component port status

Upstream ships 42 React components. We re-build the ones we need in Svelte against the published spec — 3 of the 12 on our list so far. Section numbers refer to packages/design-system/docs/design-system.md.

ComponentSpecStatusNotes
Button§4.1portedsrc/lib/components/Button.svelte — adds href, keeps the label selectable
Card§4.3portedsrc/lib/components/Card.svelte
Pill§4.6not yet
Message§4.9not yet
KPI§4.11not yet
Table§4.14not yet
Select / Combobox§4.17 / §4.18not yetbuild on bits-ui
Toggle (group)§4.21portedsrc/lib/components/ToggleGroup.svelte — single-select, on bits-ui
Tabs§4.23not yetbuild on bits-ui
Breadcrumb§4.26not yet
Pagination§4.27not yet
Tooltip§4.34not yetbuild on bits-ui

Ported: Card (§4.3)

The reference for the ports that follow. Values come from the shipped component, not from the copy-paste CSS in the spec — those .ogcr-* BEM classes exist nowhere in upstream's source. The ogcr- prefix here is only a namespace, because Skeleton ships its own global .card.

Default

padding m · border-medium · radius xl

One-for-one with the shipped component, expressed as scoped CSS over our named tokens.

Floating

elevation-l

floating swaps the border shadow for --elevation-l.

Link card

app extension

href and the leading snippet are our two documented additions to the upstream API. With href only the title is a link, so the rest of the card stays selectable text.

Dark mode is ours, not upstream's: the design system has no dark palette and its light tokens are fixed values, so each port carries a [data-mode='dark'] block over the Skeleton dark surfaces. When upstream ships a dark palette those blocks should be replaced by token overrides rather than extended.

Pills / badges

Primary Secondary Tertiary Success Warning Error

Motion

--motion-fast
150ms ease-out
--motion-base
200ms cubic-bezier(0.2, 0, 0, 1)