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.
- Package
@majistudio/ogcr-design-system— 1.1.0- 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- Design system path
https://github.com/Maji-Studio/ogcr/tree/main/packages/design-system- 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.
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.
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:
--text-positive #416c51 → #4f8263--icon-positive #416c51 → #4f8263--interaction-primary-hover #416c51 → #335641--interaction-primary-active #416c51 → #335641--interaction-secondary-focus #e2d0bf → #c3daedThe 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).
- 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
#3f88c6 · --brand-blue-300#1c3d59 · --brand-blue-800#6db087 · --brand-green-500Typography
Font sizes
--font-size-xs · 10px--font-size-s · 14px--font-size-m · 18px--font-size-l · 20px--font-size-xl · 24px--font-size-2xl · 32px--font-size-3xl · 40px--font-size-4xl · 48px--font-size-5xl · 64pxColour scales (Skeleton)
These are the scales available via Tailwind/Skeleton classes (bg-primary-500, text-surface-700, …). Anchored to the design system tokens.
Named tokens
Text
--text-primary · #0f3655--text-secondary · #6a8196--text-neutral · #334155--text-positive · #4f8263--text-negative · #b91c1c--text-warning · #c2410c--text-progress · #265277Surface
--surface-page --surface-light --surface-neutral --surface-strong --surface-inverted --surface-positive --surface-warning --surface-negative --surface-progress Border
--border-light --border-medium --border-strong --border-default --border-high-contrast --border-positive-light --border-warning-light --border-negative-light --border-negative-strong --border-neutral-strong --border-positive-strong --border-warning-strong Interaction
--interaction-primary-default --interaction-primary-hover --interaction-primary-active --interaction-primary-focus --interaction-secondary-default --interaction-secondary-hover --interaction-secondary-active --interaction-secondary-focus --interaction-tertiary-active --focus-ring-error (deprecated) Spacing
--space-2xs 4px--space-xs 8px--space-s 12px--space-m 16px--space-l 24px--space-xl 32px--space-3xl 64pxRadius
--radius-xs --radius-s --radius-m --radius-l --radius-xl --radius-full Elevation
--elevation-l(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.
| Component | Spec | Status | Notes |
|---|---|---|---|
| Button | §4.1 | ported | src/lib/components/Button.svelte — adds href, keeps the label selectable |
| Card | §4.3 | ported | src/lib/components/Card.svelte |
| Pill | §4.6 | not yet | |
| Message | §4.9 | not yet | |
| KPI | §4.11 | not yet | |
| Table | §4.14 | not yet | |
| Select / Combobox | §4.17 / §4.18 | not yet | build on bits-ui |
| Toggle (group) | §4.21 | ported | src/lib/components/ToggleGroup.svelte — single-select, on bits-ui |
| Tabs | §4.23 | not yet | build on bits-ui |
| Breadcrumb | §4.26 | not yet | |
| Pagination | §4.27 | not yet | |
| Tooltip | §4.34 | not yet | build 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
Motion
--motion-fast --motion-base