Sonora Palette
Near-black surfaces three steps deep, cream text, and one cream button. Every border and every hover is white at low alpha, and the only color in the frame is whatever the artwork brings.
3 surfaces are in use, from the page up; 2 more continue the same ramp. A level is where a component sits, not where its gray sorts — which is why the dialog and the menu are not on the rungs you would guess. Hover and selected are underneath, on their own, because neither is a level.
Observed — the value was measured in use.Inferred — a real value whose role is a reading.
- E0Pagebackground-primary → dumbo-50The ground everything stands on. Navigation shares it rather than sitting above it.PageSidebarSticky headerObserved
- E1Panelbackground-secondary → dumbo-100A region that stays put while the page moves, or that takes the page over.Player barSearch fieldDialogObserved
- E2Raisedbackground-tertiary → dumbo-150Whatever opens over a panel, and any control that needs a body of its own.MenuNeutral buttonControls in a dialogObserved
- E3Step abovedumbo-200The next step of the same ramp. It has no role name and no component assigned to it.Inferred
- E4Step abovedumbo-250The step after that, on the same terms. Reach for these two only for something that must sit on a menu.Inferred
Where components sit
States are layers, not levels
What goes on those surfaces, in three groups: the text, the lines, and the handful of colors that mean something. Each has its role name, the token behind it, and what it is for. Surfaces are not repeated here.
Foregrounds
Borders
Semantic colors
The standard controls — buttons, fields, navigation rows, a menu and a dialog — assembled from the two sections above and nothing else.
Buttons
Fields
Navigation rows
Menu · E2
Dialog · E1
Corners
Each text color against each surface it is set on, and each button label against its own fill. The theme has already chosen its surfaces, so these are the only ratios a reader will ever meet.
| Text | On E0 · Page | On E1 · Panel | On E2 · Raised |
|---|---|---|---|
| Primary#f7f4ef | Aa17.32AAA | Aa15.50AAA | Aa13.92AAA |
| Secondary#c2c2c1 | Aa10.66AAA | Aa9.54AAA | Aa8.57AAA |
| Muted#a3a3a3 | Aa7.53AAA | Aa6.74AA | Aa6.05AA |
| Disabled#6a6a72 | Aa3.55AA Large | Aa3.17AA Large | Aa2.85Exempt |
| Primary button label#101012 on #f7f4ef | Aa17.32AAA | ||
| Neutral button label#f7f4ef on #252529 | Aa13.92AAA | ||
Shut by default. 9 treatments used now and then — a promotional button, an indicator, glass over artwork — grouped by the job each does. They are kept out of the way so they are not mistaken for the theme.
Decorative colors and special effects9 entries · not the theme
The promotional button
The one control that is not neutral. It appears where the product is asking for something: Create, Subscribe, Continue.Indicators
The brand accent, used a few pixels at a time.Category tints
Behind a label or a badge at 10–20%, never as a fill. The four status colors and the brand pink are used the same way.Glass
Surfaces that sit on artwork instead of on the page. Each is a translucent fill with a blur behind it.Shut by default. The 10 ramps the roles above are drawn from. 9 of them are hues, and the sections above take a status color from 4 of those. The rest are here for reference.
Raw tokens13 ramps · 129 values
Every ramp behind the roles above. Click a step to copy it. This is reference, not guidance: a color being here says only that it exists.
The same ramps as a swatch grid, hues in pairs.
Left out on purpose: two extra steps of dandelion (850 and 950), and third-party brand colors used only on share buttons.
Not a checklist to run at the end. These are the requirements the component was built from.
Contrast
- Primary text is 17.3:1 on E0, 15.5:1 on E1, 13.9:1 on E2. It clears 7:1 on every surface it is used on, so nothing has to be re-checked when a component moves up a level.
- Muted text is 7.5:1 on E0, 6.7:1 on E1, 6.1:1 on E2 — the lowest of the three that carry reading text, and the one to watch on the higher surfaces.
- Button labels against their own fills: primary 17.3:1, neutral 13.9:1.
- Borders drawn at low alpha are separators, not boundaries of a control: they sit well under 3:1 and are not asked to carry meaning. A field’s outline is the exception, and it is the strongest line on the sheet for that reason.
Keyboard
| Tab | Moves through every value on the sheet; each one is a button that copies itself. |
| Enter / Space | Copies the focused value, or opens and closes a collapsed section. |
| ⌘I | Inspector Mode reports the live contrast of anything on this page. |
Screen readers
- Observed and Inferred are words as well as a filled and a hollow dot, so the distinction is read and survives grayscale.
- Every state on this sheet is described by what changes — a layer, a label, an outline — because "selected" announced by color alone is selected for nobody who cannot see it.
Focus & touch
- Copyable values take a ring in their own text color, offset outward, because they sit on the theme’s surfaces rather than ours and our ring color was not chosen for them.
- Ramp steps in the raw section are 28px tall and are a reference, not a control surface; on a phone, copy from the role rows above, which are full-width.
| Attribute | Applied to | Notes |
|---|---|---|
| <details> / <summary> | Decorative and Raw tokens | Native disclosure: announced as collapsed or expanded without any ARIA of ours, and operable before a script has run. |
| aria-label | Each ramp step | A swatch announces as nothing. The label carries the ramp, the step and the value. |
Example usage
How the roles combine: a surface, text on it, a line around it, and state as a layer.
1/* Stand it on a surface, write on it with a foreground, rule it with a border.2 A state is a layer over whatever is already there — never the next surface. */3.card {4 background: var(--sonora-surface-1);5 color: var(--sonora-fg-primary);6 border: 1px solid var(--sonora-border-subtle);7}89.row { color: var(--sonora-fg-muted); }10.row:hover { background: var(--sonora-state-hover); }11.row[aria-current='page'] {12 background: var(--sonora-state-selected);13 color: var(--sonora-fg-primary);14}1516:focus-visible {17 outline: 2px solid var(--sonora-state-focus);18 outline-offset: 2px;19}CSS
The theme as custom properties. Roles point at primitives, so a value is written once; only the primitives a role uses are included.
/* Sonora Palette — the theme as custom properties.
Roles reference primitives; a value is written once. */
:root {
/* primitives — the ramp steps this theme uses */
--sonora-dumbo-50: #101012;
--sonora-dumbo-100: #1c1c1f;
--sonora-dumbo-150: #252529;
--sonora-dumbo-200: #2e2e33;
--sonora-dumbo-250: #38383e;
--sonora-dumbo-450: #6a6a72;
--sonora-dumbo-600: #a3a3a3;
--sonora-dumbo-700: #c2c2c1;
--sonora-dumbo-900: #f7f4ef;
--sonora-vermilion-500: #f8441b;
--sonora-dandelion-700: #f5d907;
--sonora-grass-500: #4aab04;
--sonora-dodger-blue-600: #1f8bff;
/* surfaces — the elevation ladder, page first */
--sonora-surface-0: var(--sonora-dumbo-50); /* E0 · page, sidebar, sticky header */
--sonora-surface-1: var(--sonora-dumbo-100); /* E1 · player bar, search field, dialog */
--sonora-surface-2: var(--sonora-dumbo-150); /* E2 · menu, neutral button, controls in a dialog */
--sonora-surface-3: var(--sonora-dumbo-200); /* E3 · inferred */
--sonora-surface-4: var(--sonora-dumbo-250); /* E4 · inferred */
/* text */
--sonora-fg-primary: var(--sonora-dumbo-900); /* body text, headings, the current navigation row */
--sonora-fg-secondary: var(--sonora-dumbo-700); /* tab labels at rest and supporting copy */
--sonora-fg-muted: var(--sonora-dumbo-600); /* navigation rows that are not current, bylines, counts */
--sonora-fg-disabled: var(--sonora-dumbo-450); /* text on a control that cannot be used */
/* borders */
--sonora-border-subtle: rgb(255 255 255 / 0.1); /* separators inside a menu, the outline of a secondary button, the edge of a card */
--sonora-border-default: rgb(255 255 255 / 0.15); /* a line between two regions of the page */
--sonora-border-strong: rgb(255 255 255 / 0.3); /* the outline of a text field — the one border that has to be found before it can be used */
--sonora-border-focus: var(--sonora-dumbo-900); /* the focus outline */
/* states — layers and outlines, not surfaces */
--sonora-state-hover: rgb(255 255 255 / 0.04); /* a layer over the surface */
--sonora-state-selected: rgb(255 255 255 / 0.1); /* a layer over the surface */
--sonora-state-focus: var(--sonora-dumbo-900); /* an outline */
--sonora-state-disabled: var(--sonora-dumbo-150); /* replaces the fill */
/* status */
--sonora-success: var(--sonora-grass-500); /* success */
--sonora-warning: var(--sonora-dandelion-700); /* warning */
--sonora-error: var(--sonora-vermilion-500); /* error */
--sonora-info: var(--sonora-dodger-blue-600); /* inferred role */
}Professional tips
- Near-black surfaces three steps deep, cream text, and one cream button. Every border and every hover is white at low alpha, and the only color in the frame is whatever the artwork brings.
- The page is #101012, not black, and the text is #F7F4EF, not white. Most of what makes a neutral interface look like a particular neutral interface is in those two choices.
- If a value you need is not a role, it is in Raw tokens. Give it a role before using it, so it is written once and can be changed in one place.
Common mistakes
- Reaching into Raw tokens for a color a role already covers. A ramp step used directly is a value nobody can re-theme.
- Sorting surfaces by lightness and calling the result elevation. Where a component sits is a decision, and it does not always follow the grays.
- Treating an inferred row as settled. It is marked because its role is a reading rather than something measured in use; check it before relying on it.