Tokens
One colour-free role vocabulary with light and dark values, and the eight identity hues of Brandbook v3.1 every role is composed from — rendered live from the package.
Three layers, and only the middle one is for component authors.
The eight identity colours
The brand book’s own hues (Brandbook v3.1 §5), and the only tokens in the system named for a colour. They are notwhat you style a component with — the role set below is declared, not derived from them, though every one of the eight now feeds at least one role. There is no ninth: a colour that “just needs adding” is an RFC and a major bump.
abyss · #0B2540
Identity — the master brand, and the brand book’s primary text colour. The light theme’s ink, both hairlines, and the deep end of every ink and accent mix.
dark · #081C31
Identity — the dark environment. The dark theme’s canvas, and the hue under all six scrims.
sonda · #4A82C4
Identity — structure and bathymetry: route lines, grids, axes. Consumed by the `info` tone, and what lifts a floating surface off the dark canvas.
terracotta · #B86E28
Identity — THE single brand accent: a primary action or a human-control moment, never decoration. Consumed by `brand`, `brand-ink`, `brand-soft` and `accent-tint`.
surface · #EEF3F8
Identity — the light surface. The light theme’s canvas, and the ground its card step and its accent tints are mixed over.
starboard · #2A8A5C
Identity — success data. Consumed by the `done` tone. Data, not a second accent.
amber · #C99A2E
Identity — warning data. Consumed by the `working` tone. Data, not a second accent.
port · #B4472E
Identity — error data. Consumed by the `stuck` tone, which is what `destructive` aliases. Data, not a second accent.
The token set
One vocabulary, two sets of values. Flip the theme in the sidebar and read it again — the same utilities, different values, no per-theme branch in any component.
shadcn compatibility aliases
Each pair below is one var() registered under two names. If a row ever shows two different colours, the alias layer has drifted.
Theme-invariant roles
Every role above flips with the canvas. These do not — which is why, before they were named, six components reached for a colour-named utility instead. A colour name is never a class name; if no role fits, name one in the SSOT.
Content below
How much of this survives is the whole difference between the steps.
bg-scrim
Blocking — Dialog, Sheet. The page below is dismissed.
Content below
How much of this survives is the whole difference between the steps.
bg-scrim-muted
Dimmed, still readable.
Content below
How much of this survives is the whole difference between the steps.
bg-scrim-subtle
Veiled, still legible.
Two layers, and only one of them names a colour
Identity — styles/palette.css. The eight hues Brandbook v3.1 names — abyss, dark, sonda,
terracotta, surface, starboard, amber, port — as --oc-hue-*, for the wordmark, a deck, a social
header. A hue name is correct there, because that is what the thing is called,
and it is the only place in the system where a colour word is a token name.
Roles — styles/theme.css, and the utilities. What a part of the interface is for, with
a light value and a dark value each.
Since Brandbook v3.1 (2.0.0) every role is composed from an identity hue — ink is abyss,
brand is terracotta, info is sonda mixed toward black by the minimum a contrast pair demanded —
but the arrow points one way. A role carries its own light and dark value, chosen by the contrast
contract in tokens.source.mjs; the identity layer is what a value is made of, never what a
component is styled with. (Before 2.0.0 the two layers were unrelated by measurement: one role
referenced one hue and three of five hues were referenced by nothing.)
Consume roles, never colours
bg-app, text-ink, border-hairline, bg-brand — never a hue-named class. Since @OCE-1746
those utilities do not exist: theme.css does not register the identity hues inside
@theme, so Tailwind emits nothing for them.
Every name is colour-free on purpose — which is why the 2.0.0 palette swap renamed nothing in any consumer: a role named for a hue would have made it a rename of every call site.
One vocabulary, two sets of values: a component names a role and is correct in both themes with no per-theme branch. That is why every preview on this site inherits a single global theme rather than carrying its own toggle — flip the theme in the sidebar and read this page again.
Where the values live
| Artifact | What it is |
|---|---|
tokens.source.mjs | the single source of truth. Never hand-write a hex outside it. |
styles/palette.css | the eight brand hues as raw --oc-hue-*, for CSS authors only — not utilities |
styles/theme.css | layers 1–3 — the raw --oc-* values per theme, the @theme inline role registrations, and the shadcn alias layer |
oceanic.tokens.json | the DTCG 2025.10 export, for design tools |
@oceanic-hub/brand-system/tokens | the same values as typed TypeScript |
Everything below tokens.source.mjs is generated, and pnpm check:tokens fails on any byte
of difference — so a value that disagrees with the SSOT cannot reach a consumer.
The two micro type steps (@OCE-2038)
theme.css declares no --text-* scale beyond these two, and that is deliberate: body and
heading sizes come from Tailwind's own scale, while the two treatments below body are the
ones every surface needs and nothing declared.
| Token | Value | What it is for |
|---|---|---|
--text-eyebrow / text-eyebrow | 10px | the uppercase mono label above a title, on a chip, on a group heading |
--text-meta / text-meta | 11px | dense metadata and tabular values — below body, above the eyebrow |
--tracking-eyebrow | 0.2em | the one tracking value for the eyebrow, relative so it follows the step |
--tracking-meta | 0em | declared, because "no letter-spacing" is a decision dense numerals make |
Before they were declared, eighteen modules wrote the size at the call site and one treatment
carried four different tracking values. A spread like that is the signature of a missing
token rather than of six decisions — and check:tokens now fails on a bracketed text- or
tracking- length in any component, so the steps stay the only source.
The composed treatment is also reachable without an import — oc-eyebrow sets the family,
the step, the tracking and the case, so a <span>, a <th> or a <dt> gets it with no
component and no hand-written string. CardEyebrow remains the right answer inside a Card; the
utility is for everywhere else. Any ink role applied after it still wins, which is what the
in-package call sites need — they differ only in which ink they reach for.
The duration scale (@OCE-2247)
Motion is two systems here and only one of them was ever a token. The fifteen animate-oc-*
animations pin their own duration and easing inside the token, so a call site cannot re-time
them. Transitions — a colour, a width, a knob travelling — take a step from this scale
instead, because there the length is part of the decision the caller is making.
| Token | Value | What it is for |
|---|---|---|
--duration-instant / duration-instant | 0ms | not a speed. What reduced motion sets every step to, and how a call site says "no movement" |
--duration-fast / duration-fast | 120ms | an exit — a dismissal is a command, and latency after it reads as disobedience |
--duration-base / duration-base | 150ms | the default, and where a colour transition lives |
--duration-slow / duration-slow | 200ms | travel — a sheet crossing the viewport, a rail changing width |
One easing, ease-quiet, and the argument for keeping it at one is on the doctrine page. A
colour fade may name no easing and take the browser default; anything that moves geometry
must name the curve.
Read this page with the OS switch on
Turn on reduce motion in your system settings and reload. Every --duration-* step goes
to 0ms, and so does --default-transition-duration, so every transition on this site — and
in your own app, against this theme — stops rather than merely running shorter. That is the
half of "the animation stops, the mark persists" that nothing enforced until 1.7.0: the
fifteen animations degraded and the 47 transitions beside them did not.
The steps are also the values the animations spend, so there is one set of numbers rather than
two. check:tokens fails a transition in src/components that names no duration, and the
ESLint rule rejects one written as a number — the same ratchet the type steps above run on.
The rules that surprise people
All three are argued in full in the doctrine:
- There is one accent.
primaryandaccentwere two different hues in a palette that had two; the adopted design has one, so both aliasbrandand the Button separates them as fill vs outline instead. - There IS a red now.
destructivealiasesstuck, andworkingis an amber. The retired doctrine had no red at all and routed severity through copy alone; copy still carries the severity, but the colour is now allowed to agree with it. - Five roles do not flip with the theme — the three scrims, the control knob and the media plate. Before they were named, six components reached for a colour-named utility because the system had no way to say "this must not flip".
Contrast pairings are gated: check:tokens measures 72 declared pairs in both themes, as
components render them, and known debt is enumerated in a11y-exceptions.json rather than
tolerated silently. @OCE-1746 widened it from six abstract role pairs — the narrow version
reported all clear while a Switch thumb shipped at 1.09:1 over its own track.