Skip to Content
BBRICKSv0.7.4
Foundations

Design tokens

Every design token, parsed from tokens.css and themes/pr.css.

182 tokens in tokens.css (the brand look, on :root) and 139 values in themes/pr.css (scoped to [data-bricks-theme='pr']). This page is generated by parsing those two files, so it cannot drift. Where the PR theme changes a value, both are shown. 155 tokens carry a usage note from the design system (docs/content/token-notes.json), shown under the token's name.

Colour

The palette (73 values that are literal colours). Aliases such as --color-accent are in the tables below.

  • --rasp#C7325C
  • --rasp-d#A6244A
  • --rasp-50#FCE9EF
  • --rasp-100#F8D2DE
  • --rasp-ink#7E1C3A
  • --lime#D6F36A
  • --lime-50#F2FAD6
  • --olive#3D5A10
  • --ink#141414
  • --ink-2#4A4D57
  • --ink-3#6A6E7A
  • --bg#F1F2F6
  • --card#FFFFFF
  • --line#E6E7EE
  • --soft#F6F7FA
  • --butter#FFF1C7
  • --butter-ink#7A5400
  • --sky#E4EBFF
  • --sky-ink#2C45A6
  • --lilac#EFE7FF
  • --lilac-ink#5B3BB0
  • --ok#1C7D44
  • --ok-bg#E3F5EA
  • --bad#B4233F
  • --track#ECEDF2
  • --grid#EEF0F4
  • --rasp-soft#F2A3BA
  • --chart-butter#F5C451
  • --chart-lime#9CC820
  • --spark-lime#5D8A12
  • --spark-butter#B07A00
  • --tier-rising-bg#EEF8D2
  • --tier-rising-ink#4A6B12
  • --tier-established-bg#E8EEFF
  • --tier-established-ink#3149A8
  • --tier-influential-bg#E0F4F1PR #F0E8FF
  • --tier-influential-ink#0F6A5CPR #5B34A0
  • --tier-elite-bg#FFF0C9
  • --tier-elite-ink#8A5A00
  • --tbl-head#FAFAFC
  • --row-hover#FBF6F8
  • --ios-on#34C759
  • --ios-off#E9E9EA
  • --medal-1-bg#FFE48A
  • --medal-1-ink#7A5400
  • --medal-2-bg#E6E8EE
  • --medal-2-ink#4A4D57
  • --medal-3-bg#F6D3B8
  • --medal-3-ink#8A4A1A
  • --color-obsidian-950#0A0A0A
  • --color-obsidian-850#1E1F25
  • --color-obsidian-800#22232A
  • --color-obsidian-700#2A2B33
  • --color-surface-hover#EEF0F5
  • --color-control-border-hover#CFD1DA
  • --color-text-inverted#FFFFFF
  • --color-accent-tint#FFFBFC
  • --color-accent-tint-soft#FFFBFC
  • --color-accent-border-strong#F2A3BA
  • --color-accent-on-dark#F2A3BA
  • --color-nav-count-inkinherit
  • --color-nav-count-active-bgrgba(255, 255, 255, 0.08)
  • --color-status-success-border#BFE6CD
  • --color-status-warning-border#F5DF9B
  • --color-status-attention-alert-bg#FFF8E3
  • --color-status-attention-border#F5DF9B
  • --color-status-info-alert-bg#F1F4FF
  • --color-status-info-border#C9D5FB
  • --shell-side-ink#FFFFFF
  • --shell-nav-ink#C9CBD3
  • --shell-nav-hover#22232A
  • --shell-nav-muted#5D606B
  • --shell-grp-ink#9A9DA8

All colour tokens

The mock palette

TokenBrand (default)PR theme
--raspRaspberry, the action colour: primary buttons, the active sidebar row, links, focus rings, the selected tab. White text on it is 5.2:1. Never a background for large areas.#C7325C#C7325C
--rasp-dRaspberry pressed/hover state, and ghost-button text (7.06:1 on card, 6.07:1 on rasp-50).#A6244A#A6244A
--rasp-50Raspberry tint: the rasp tile/KPI ground, danger pill ground, the field focus halo. Text on it is rasp-ink or bad.#FCE9EF#FCE9EF
--rasp-100Raspberry border: the accent border on rasp tints, bulk bar line, danger pill border.#F8D2DE#F8D2DE

Dark raspberry text on --rasp-50 (the rasp KPI card and tile).

TokenBrand (default)PR theme
--rasp-inkDark raspberry text on rasp-50 (the rasp KPI card and tile), 8.53:1.#7E1C3A#7E1C3A
--limeLime marks only positive or new things: the NEW nav badge, the lime tile, the PR bulk bar's Approve, the iOS-style on state in the PR look. Text on it is olive (6.33:1) or ink (14.8:1).#D6F36A#D6F36A
--lime-50Lime tint: the lime callout card ground, a checked row in a picker. Text on it is ink or olive (7.28:1).#F2FAD6#F2FAD6
--oliveText and icons on lime and lime-50.#3D5A10#3D5A10
--inkNear-black: body text, headings, the sidebar ground, the selected filter chip, the PR segmented 'on' fill. 18.4:1 on card.#141414#141414
--ink-2Secondary text: table cells, descriptions, ghost button text in the PR look. 8.43:1 on card, 7.54:1 on bg.#4A4D57#4A4D57
--ink-3Muted text: subtitles, captions, table heads, timestamps. 5.09:1 on card, 4.55:1 on bg (the mock's #7A7E8A failed AA and was darkened).#6A6E7A#6A6E7A
--bgThe page ground behind every card (#F1F2F6). Main column and shell background.#F1F2F6#F1F2F6
--cardCard, table, drawer, modal and input surface. Also the gap colour of the focus ring.#FFFFFF#FFFFFF
--lineHairline borders: cards, inputs, table rules, the header's circle buttons.#E6E7EE#E6E7EE
--softQuiet fill: the segmented track, menu hover, secondary chip ground, close-button disc.#F6F7FA#F6F7FA
--butterWarning / attention pill ground and the butter tile. Text on it is butter-ink (6.03:1).#FFF1C7#FFF1C7
--butter-inkText on butter and medal-1-bg.#7A5400#7A5400
--skyInfo pill ground and the sky tile. Text on it is sky-ink (7.03:1).#E4EBFF#E4EBFF
--sky-inkText on sky; the info status colour.#2C45A6#2C45A6
--lilacViolet pill ground (Influential-style chips, 'in review'). Text on it is lilac-ink (6.5:1).#EFE7FF#EFE7FF
--lilac-inkText on lilac.#5B3BB0#5B3BB0
--okSuccess text and icons: approved, paid, positive deltas. 4.55:1 on ok-bg (the mock's #1D7F45 missed AA).#1C7D44#1C7D44
--ok-bgSuccess pill ground.#E3F5EA#E3F5EA
--badDanger text: rejected, overdue, negative deltas, the 'hot' count. 5.55:1 on rasp-50, 6.46:1 on card.#B4233F#B4233F

The mock's chart colours (gauge, bars, pips, stack bars, trend gridlines)

TokenBrand (default)PR theme
--trackThe empty part of gauges, progress bars and pips.#ECEDF2#ECEDF2
--gridChart gridlines in trend and bar charts.#EEF0F4same
--rasp-softSecond chart series beside rasp (e.g. 'reserved' seats in the gauge). Decorative only: never text.#F2A3BAsame
--chart-butterButter chart series (stack bars, mini bars).#F5C451same
--chart-limeLime chart series; stronger than lime so bars read on white.#9CC820#9CC820
--spark-limeSparkline stroke for positive metrics on the lime tile.#5D8A12same
--spark-butterSparkline stroke on the butter tile.#B07A00same

v3 (16 Nov review): tier chips (.tier.*), the table head and row hover (.tbl), the iOS swi…

TokenBrand (default)PR theme
--tier-rising-bgRising tier chip ground; text tier-rising-ink (5.58:1).#EEF8D2#EEF8D2
--tier-rising-inkRising tier chip text.#4A6B12#4A6B12
--tier-established-bgEstablished tier chip ground; text tier-established-ink (6.83:1).#E8EEFF#E8EEFF
--tier-established-inkEstablished tier chip text.#3149A8#3149A8
--tier-influential-bgInfluential tier chip ground. Brand: teal so no tier shares a status pill's colour; PR Portal: the v3 mock's lilac.#E0F4F1#F0E8FF
--tier-influential-inkInfluential tier chip text (5.68:1 brand, 7.24:1 PR).#0F6A5C#5B34A0
--tier-elite-bgElite tier chip ground; text tier-elite-ink (5.24:1).#FFF0C9#FFF0C9
--tier-elite-inkElite tier chip text.#8A5A00#8A5A00
--tbl-headTable header row ground (DataTable, Table).#FAFAFC#FAFAFC
--row-hoverTable and row-list hover, a faint raspberry wash.#FBF6F8#FBF6F8
--ios-onSwitch 'on' track (the iOS green).#34C759#34C759
--ios-offSwitch 'off' track.#E9E9EA#E9E9EA

Rank medals (.rank.r1/.r2/.r3): gold, silver, bronze.

TokenBrand (default)PR theme
--medal-1-bgGold rank medal (#1) ground; text medal-1-ink.#FFE48A#FFE48A
--medal-1-inkGold medal numeral.#7A5400#7A5400
--medal-2-bgSilver rank medal (#2) ground; text medal-2-ink (6.88:1).#E6E8EE#E6E8EE
--medal-2-inkSilver medal numeral.#4A4D57#4A4D57
--medal-3-bgBronze rank medal (#3) ground; text medal-3-ink (4.85:1).#F6D3B8#F6D3B8
--medal-3-inkBronze medal numeral.#8A4A1A#8A4A1A

Ink scale (the old obsidian names)

TokenBrand (default)PR theme
--color-obsidian-950Deepest ink, kept for older CSS (the obsidian scale).#0A0A0Asame
--color-obsidian-900Alias of ink (legacy obsidian name).var(--ink)var(--ink)
--color-obsidian-850Sidebar help card ground ('Need a hand?').#1E1F25same
--color-obsidian-800Sidebar row hover on ink.#22232Asame
--color-obsidian-700Sidebar count pill ground on ink.#2A2B33same
--color-sidebarThe sidebar ground (alias of ink).var(--ink)var(--ink)

Surfaces & borders

TokenBrand (default)PR theme
--color-surface-bgSemantic alias of bg for app CSS.var(--bg)var(--bg)
--color-surface-cardSemantic alias of card.var(--card)var(--card)
--color-surface-mutedSemantic alias of soft.var(--soft)var(--soft)
--color-surface-subtleSemantic alias of soft.var(--soft)var(--soft)
--color-surface-hoverHover fill on neutral rows and menu items.#EEF0F5same
--color-surface-borderSemantic alias of line.var(--line)var(--line)
--color-surface-border-subtleThe faintest divider, on card.var(--soft)var(--soft)
--color-control-borderInput, select and segmented borders at rest.var(--line)var(--line)
--color-control-border-hoverInput and select border on hover.#CFD1DAsame

Text

TokenBrand (default)PR theme
--color-text-primarySemantic alias of ink: body copy on card and bg.var(--ink)var(--ink)
--color-text-secondarySemantic alias of ink-2.var(--ink-2)var(--ink-2)
--color-text-mutedSemantic alias of ink-3: captions on card (5.09:1) and bg (4.55:1).var(--ink-3)var(--ink-3)
--color-text-strong-neutralSemantic alias of ink-2 for emphasised neutral text.var(--ink-2)var(--ink-2)
--color-text-invertedWhite text on ink, rasp and rasp-d.#FFFFFFsame

Accent: raspberry is the action colour; lime marks only positive / new states.

TokenBrand (default)PR theme
--color-accentThe accent (alias of rasp). App CSS uses this name.var(--rasp)var(--rasp)
--color-accent-darkAccent hover (alias of rasp-d).var(--rasp-d)var(--rasp-d)
--color-accent-lightAccent tint (alias of rasp-50).var(--rasp-50)var(--rasp-50)
--color-accent-tintThe barely-pink ground of the bulk bar and selected rows.#FFFBFCsame
--color-accent-tint-softSame as color-accent-tint, kept for older CSS.#FFFBFCsame
--color-accent-borderAccent border (alias of rasp-100).var(--rasp-100)var(--rasp-100)
--color-accent-border-strongStronger accent border on tints.#F2A3BAsame
--color-accent-on-darkRaspberry text on ink (9.41:1), e.g. links in the save bar or toast.#F2A3BAsame
--color-nav-activeThe active sidebar row fill (alias of rasp).var(--rasp)var(--rasp)

"Hot" counts only: overdue reviews, open fraud.

TokenBrand (default)PR theme
--color-count-hot'Hot' counts only: overdue reviews, open fraud (alias of bad).var(--bad)var(--bad)

Sidebar nav counts: their text (inherit = the row's ink) and the pill behind an active r…

TokenBrand (default)PR theme
--color-nav-count-inkinheritsame
--color-nav-count-active-bgThe count pill behind an active nav row's number: 8% white on raspberry so white text keeps 4.62:1.rgba(255, 255, 255, 0.08)same

Status (chip bg / fg), the mock's pill pairs

TokenBrand (default)PR theme
--color-status-successSuccess pill text (alias of ok).var(--ok)var(--ok)
--color-status-success-bgSuccess pill ground (alias of ok-bg).var(--ok-bg)var(--ok-bg)
--color-status-success-borderSuccess banner border.#BFE6CDsame
--color-status-success-strongStrong success icon/text (alias of ok).var(--ok)var(--ok)
--color-status-warningWarning pill text (alias of butter-ink).var(--butter-ink)var(--butter-ink)
--color-status-warning-bgWarning pill ground (alias of butter).var(--butter)var(--butter)
--color-status-warning-borderWarning banner border.#F5DF9Bsame
--color-status-attentionAttention text (alias of butter-ink).var(--butter-ink)var(--butter-ink)
--color-status-attention-bgAttention pill ground (alias of butter).var(--butter)var(--butter)
--color-status-attention-alert-bgAttention banner ground, lighter than butter.#FFF8E3same
--color-status-attention-borderAttention banner border.#F5DF9Bsame
--color-status-dangerDanger text (alias of bad).var(--bad)var(--bad)
--color-status-danger-bgDanger pill ground (alias of rasp-50).var(--rasp-50)var(--rasp-50)
--color-status-danger-borderDanger banner border (alias of rasp-100).var(--rasp-100)var(--rasp-100)
--color-status-danger-textDanger body text in banners (alias of bad).var(--bad)var(--bad)
--color-status-infoInfo text (alias of sky-ink).var(--sky-ink)var(--sky-ink)
--color-status-info-bgInfo pill ground (alias of sky).var(--sky)var(--sky)
--color-status-info-alert-bgInfo banner ground, lighter than sky.#F1F4FFsame
--color-status-info-borderInfo banner border.#C9D5FBsame
--color-status-violetViolet status text (alias of lilac-ink).var(--lilac-ink)var(--lilac-ink)
--color-status-violet-bgViolet status ground (alias of lilac).var(--lilac)var(--lilac)

A text field: its 1px border turns raspberry and a second raspberry pixel joins it (a 2px …

TokenBrand (default)PR theme
--ink-300Legacy alias of ink-3.var(--ink-3)var(--ink-3)

Segmented (G1)

TokenBrand (default)PR theme
--seg-trackSegmented control track. Brand: soft; PR: card with a line border.var(--soft)var(--card)
--seg-on-bgPressed segment fill. Brand: card (white pill); PR: ink.var(--card)var(--ink)
--seg-on-inkPressed segment text. Brand: ink; PR: white.var(--ink)var(--color-text-inverted)

Buttons (G2, G3)

TokenBrand (default)PR theme
--btn-ghost-inkGhost button text. Brand: rasp-d; PR: ink-2.var(--rasp-d)var(--ink-2)
--btn-ghost-hoverGhost button hover. Brand: rasp-50; PR: soft.var(--rasp-50)var(--soft)

BulkBar (G9)

TokenBrand (default)PR theme
--bulk-bgBulkBar ground (alias of color-accent-tint).var(--color-accent-tint)same
--bulk-lineBulkBar border (alias of color-accent-border).var(--color-accent-border)var(--color-accent-border)

Shell (shell.css): sidebar colours, nav rows, the page title and the main column's padding

TokenBrand (default)PR theme
--shell-side-bgSidebar ground in AppShell (alias of color-sidebar).var(--color-sidebar)var(--ink)
--shell-side-inkSidebar headline text (brand name, user) on shell-side-bg.#FFFFFF#FFFFFF
--shell-nav-inkNav row text on the ink sidebar (11.4:1).#C9CBD3#C9CBD3
--shell-nav-hoverNav row hover on the ink sidebar.#22232A#22232A
--shell-nav-activeActive nav row fill (alias of color-nav-active).var(--color-nav-active)var(--rasp)
--shell-nav-mutedDisabled ('soon') nav row text on ink: 2.94:1, below AA, kept from the source; WCAG exempts disabled controls.#5D606B#5D606B

Group headings and "soon" tags on the sidebar: 6.8:1 on --ink (the mock's #6E717C was 3.78…

TokenBrand (default)PR theme
--shell-grp-inkSidebar group headings and 'soon' tags on ink (6.81:1; the mock's #6E717C was 3.78:1).#9A9DA8#9A9DA8

Radii

The mock's scale: coupon 10, input 14, row 16, card 22, drawer 24, modal 26, hero 28.

  • --r-lg22px
  • --r-xl28px
  • --radius-xs4px
  • --radius-sm10px
  • --radius-md14px · PR 12px
  • --radius-lg16px
  • --radius-xl22px
  • --radius-modal26px
  • --radius-full9999px
  • --field-radius12px · PR var(--radius-md)
  • --bulk-radius12px
TokenBrand (default)PR theme
--r-lgCard corner from the mock (22px).22px22px
--r-xlHero card and tile corner from the mock (28px).28px28px
--radius-xsTiny marks: progress bar ends, small tags.4pxsame
--radius-smCoupon chips, small thumbnails.10px10px
--radius-mdInputs and icon squares (PR theme: 12px).14px12px
--radius-lgRows, accordions, menu items, nav rows.16px16px
--radius-xlCards (22px).22px22px
--radius-modalModals (26px).26px26px
--radius-fullPills, avatars, circle buttons, the search field.9999pxsame
--field-radiusText field and select corners. PR theme: radius-md.12pxvar(--radius-md)
--bulk-radiusBulkBar corners.12pxsame

Shadows

  • --shadow-sm
  • --shadow-md
  • --shadow-lg
  • --shadow-drawer
  • --shadow-glow
TokenBrand (default)PR theme
--shadow-smThe segmented control's pressed pill and small raised chips.0 1px 2px rgba(0, 0, 0, 0.06)same
--shadow-mdCreator card hover; popovers. PR theme: a 22px blur instead of 24px.0 10px 24px rgba(20, 20, 20, 0.07)0 10px 22px rgba(20, 20, 20, 0.07)
--shadow-lgMenus and the notifications panel.0 10px 24px rgba(20, 20, 20, 0.12)same
--shadow-drawerDrawers and modals.0 10px 24px rgba(20, 20, 20, 0.12)same
--shadow-glowRaspberry glow under the primary hero action.0 10px 24px rgba(199, 50, 92, 0.2)same

Type

The tokens define font stacks and a few sizes, not a full scale. The library ships no fonts; load Inter, Plus Jakarta Sans and Cairo (the docs do, from Google Fonts) or your own.

--font-family-sans

The quick brown fox jumps over the lazy dog 0123456789

صنّاع المحتوى والمدفوعات ١٢٣٤

--font-family-display

The quick brown fox jumps over the lazy dog 0123456789

صنّاع المحتوى والمدفوعات ١٢٣٤

TokenBrand (default)PR theme
--font-family-sans'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif
--font-family-display'Plus Jakarta Sans', 'Inter', 'Cairo', system-ui, sans-serif'Plus Jakarta Sans', 'Inter', 'Cairo', system-ui, sans-serif
--font-family-mono'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospacesame
--font-sansvar(--font-family-sans)var(--font-family-sans)
--font-displayvar(--font-family-display)var(--font-family-display)
--font-monovar(--font-family-mono)same
--text-tertiaryLegacy alias of ink-3.var(--ink-3)var(--ink-3)
--seg-fsinherit13px
--dlg-title-fsModal and drawer title size. PR theme: 20px.22px20px
--page-title-fsPageHeader h1 size. PR theme: 28px.30px28px
--shell-title-sizeAppHeader title size. PR theme: 28px.30px28px

Spacing and metrics

Control height is 44px on touch tiers (up to 1024px) and 38px on desktop (tokens.css switches it in a media query). There is no spacing scale token; components use fixed paddings.

TokenBrand (default)PR theme
--card-minMinimum column width of auto-fill card grids (.cards).300pxsame
--control-hControl height: 44px on touch tiers, 38px above 1024px (bundle.css switches it).44pxsame
--min-touch-targetMinimum hit area for icon buttons on touch.44pxsame
--sidebar-width-desktopSidebar width on desktop. PR theme: 248px.252px248px
--sidebar-width-railIcon rail width (tablet).72pxsame
--bottom-nav-heightPhone tab bar height.64pxsame
--seg-pad6px 14px7px 14px
--btn-sm-pad6px 12px6px 13px
--field-hText field height.42px42px
--modal-wModal width. PR theme: 480px.660px480px
--modal-padModal padding. PR theme: 26px.28px26px
--drawer-wDrawer width. PR theme: 420px.400px420px
--page-sub-maxMax width of the page header's subtitle. PR theme: 640px.620px640px
--chipf-pad7px 14px6px 13px
--shell-nav-pad-blockNav row vertical padding. PR theme: 10px.11px10px
--shell-main-pad24px 32px 56px24px 32px 64px
--shell-top-offsetExtra top offset for the shell (an app banner above it).0pxsame

Theme hooks

Variables a theme sets so kit and shell rules can change shape without new selectors. They have the same fallback in the CSS, so the brand look is unchanged. The PR theme sets most of them; see Theming.

TokenBrand (default)PR theme
--seg-linetransparentvar(--line)
--seg-on-shadowPressed segment shadow. Brand: shadow-sm's value; PR: none (an ink fill needs no lift).0 1px 2px rgba(0, 0, 0, 0.06)none
--disabled-opacityDisabled controls. PR theme: 0.45 with a not-allowed cursor.0.50.45
--disabled-cursordefaultnot-allowed
--drawer-dur200ms250ms
--drawer-easeease-outcubic-bezier(0.2, 0.8, 0.2, 1)
--bulk-inkinheritsame
--shell-search-wHeader search pill width. PR theme: 260px.240px260px
--shell-search-w-narrowinitial190px
--shell-crumb-linkinheritvar(--rasp)
--shell-crumb-weightinherit600
--shell-crumb-decounderlinenone

Other

TokenBrand (default)PR theme
--kit-chevronurl("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6E7A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")same
--gradient-brandlinear-gradient(var(--rasp), var(--rasp))linear-gradient(var(--rasp), var(--rasp))
--tracking-displayLetter spacing of display headings (card, drawer, page titles). Arabic always uses 0.-0.2pxsame
--focus-ring0 0 0 2px var(--card), 0 0 0 4px var(--rasp)0 0 0 2px var(--card), 0 0 0 4px var(--rasp)
--focus-ring-insetinset 0 0 0 2px var(--rasp), inset 0 0 0 4px var(--card)inset 0 0 0 2px var(--rasp), inset 0 0 0 4px var(--card)
--focus-ring-inverse0 0 0 2px var(--ink), 0 0 0 4px #FFFFFF0 0 0 2px var(--ink), 0 0 0 4px #FFFFFF
--focus-ring-field0 0 0 1px var(--rasp), 0 0 0 5px var(--rasp-50)0 0 0 1px var(--rasp), 0 0 0 5px var(--rasp-50)
--dlg-title-fwModal and drawer title weight. PR theme: 800.700800
--lt-search-wListToolbar search box width. PR theme: 248px.260px248px

On this page