Design Tokens
The complete reference of every --bima-* custom property and its default value. These tokens are the single source of truth for the BIMA visual language.
Overview
Every colour, font, size, radius, shadow, and motion value in the framework resolves to one of the --bima-* tokens defined on :root in tokens/variables.css. The tables below list the exact names and default values. Override any of them in your own :root to re-theme the whole system — see CSS Variables for how.
The same values are published machine-readable in tokens/design-tokens.json (for Figma / Style Dictionary). The CSS tokens are exposed via the @milvikbima/ui/tokens export, which resolves to tokens/variables.css.
Brand colours
The core BIMA palette. Navy is the anchor, Blue is the secondary brand, Sky is the friendly accent, Mist is the calm neutral surface. These also drive the semantic interactive roles.
| Token | Value | Role |
|---|---|---|
--bima-navy | #0A2261 | Primary brand — headers, primary buttons |
--bima-navy-hover | #082365 | Primary hover / brand link |
--bima-navy-deep | #061845 | Deepest navy — gradients, pressed states |
--bima-navy-soft | #203868 | Navy ink — long-form body text on brand |
--bima-blue | #325CA8 | Secondary brand — accents, links, info |
--bima-blue-hover | #416CBA | Secondary hover |
--bima-blue-dark | #2F579F | Secondary pressed |
--bima-blue-light | #5291D8 | Lighter accent |
--bima-blue-tint | #CEE0F4 | Faint blue wash |
--bima-sky | #97CCE7 | Accent — CTA pills, focus ring, highlights |
--bima-sky-light | #AEE2F7 | Lighter sky |
--bima-sky-muted | #D5EFF9 | Faint sky wash |
--bima-ink | #18181C | Near-black — densest text, tooltips |
--bima-mist | #F4F5F7 | Calm neutral surface — page bg, soft cards |
Components reference these through semantic interactive aliases rather than the raw colour:
| Token | Resolves to |
|---|---|
--bima-interactive-primary | var(--bima-navy) |
--bima-interactive-primary-hover | var(--bima-navy-hover) |
--bima-interactive-secondary | var(--bima-blue) |
--bima-interactive-secondary-hover | var(--bima-blue-hover) |
--bima-interactive-accent | var(--bima-sky) |
--bima-interactive-focus | var(--bima-sky) |
Surfaces, text & borders
The neutral layers — backgrounds, text levels, and borders. These are the tokens dark mode re-declares.
| Token | Value | Role |
|---|---|---|
--bima-surface-page | #F4F5F7 | Page background |
--bima-surface-subtle | #FBFCFD | Off-white nested panels |
--bima-surface-card | #FFFFFF | Card surface |
--bima-surface-muted | #F4F5F7 | Mist card surface |
--bima-surface-overlay | rgba(10, 24, 46, 0.55) | Modal / dialog overlay |
--bima-surface-nav | var(--bima-navy) | Navigation surface |
--bima-surface-input | #FFFFFF | Input background |
--bima-surface-input-disabled | #F1F4F8 | Disabled input background |
--bima-text-primary | #18181C | Primary text |
--bima-text-secondary | #404655 | Secondary text |
--bima-text-muted | #5E6B7B | Muted text — AA (4.5:1) on Mist |
--bima-text-inverse | #FFFFFF | Text on dark / brand fills |
--bima-text-on-navy | rgba(255, 255, 255, 0.82) | Body text on navy surfaces |
--bima-text-link | var(--bima-blue) | Link colour |
--bima-text-link-hover | var(--bima-navy) | Link hover colour |
--bima-text-disabled | #9AA3AE | Disabled text |
--bima-border-default | #E4E9F0 | Default border |
--bima-border-strong | #CBD5E0 | Strong border |
--bima-border-subtle | #EDF1F6 | Subtle border |
--bima-border-focus | var(--bima-sky) | Focus border |
--bima-border-error | #EF4444 | Error / invalid border |
Interaction-state backgrounds — reference these instead of one-off rgba() values:
| Token | Value | Role |
|---|---|---|
--bima-state-hover | #F1F4F8 | Neutral hover (ghost btn, list rows) |
--bima-state-hover-strong | #E7ECF3 | Pressed / active press |
--bima-state-selected | #EAF0FA | Selected nav item, secondary-btn hover |
--bima-state-selected-text | var(--bima-blue) | Text on a selected item |
--bima-row-hover | #F8FAFC | Table row hover (subtler than -hover) |
Status colours
Each status has a solid fill *, a tinted surface *-bg, and an AA-compliant text colour *-text. Always pair background:*-bg with color:*-text — never *-bg with the solid *.
| Token | Value | Role |
|---|---|---|
--bima-success | #1BB792 | Success fill / dot |
--bima-success-dark | #0F7A5A | Success pressed |
--bima-success-bg | #E6FAF6 | Success tint |
--bima-success-text | #0F7A5A | Text on success-bg (5.3:1) |
--bima-warning | #FA8C16 | Warning fill / dot |
--bima-warning-dark | #B45309 | Warning pressed |
--bima-warning-bg | #FFF7E6 | Warning tint |
--bima-warning-text | #B45309 | Text on warning-bg (4.8:1) |
--bima-error | #EF4444 | Error fill / dot |
--bima-error-dark | #DC2626 | Error pressed |
--bima-error-bg | #FEF2F2 | Error tint |
--bima-error-text | #B91C1C | Text on error-bg (5.9:1) |
--bima-info | var(--bima-blue) | Info fill / dot |
--bima-info-dark | #1E4E8C | Info pressed |
--bima-info-bg | #EBF5FB | Info tint |
--bima-info-text | #1E4E8C | Text on info-bg (5.6:1) |
--bima-neutral | #5E6B7B | Neutral fill / dot |
--bima-neutral-bg | #F1F4F8 | Neutral tint |
--bima-neutral-text | #475467 | Text on neutral-bg (6.4:1) |
Typography
Quicksand for display / headings, Manrope for body / UI, JetBrains Mono for code — plus the type scale, weights, line-heights, and letter-spacing.
| Token | Value |
|---|---|
--bima-font-display | 'Quicksand', ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif |
--bima-font-body | 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif |
--bima-font-mono | 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace |
--bima-text-display | clamp(2.75rem, 5vw, 4rem) — fluid hero |
--bima-text-h1 | 2.5rem (40px) |
--bima-text-h2 | 2rem (32px) |
--bima-text-h3 | 1.5rem (24px) |
--bima-text-h4 | 1.25rem (20px) |
--bima-text-h5 | 1.125rem (18px) |
--bima-text-h6 | 1rem (16px) |
--bima-text-large | 1.125rem (18px) |
--bima-text-base | 1rem (16px) |
--bima-text-small | 0.875rem (14px) |
--bima-text-caption | 0.75rem (12px) |
--bima-font-light | 300 |
--bima-font-regular | 400 |
--bima-font-medium | 500 |
--bima-font-semibold | 600 |
--bima-font-bold | 700 |
--bima-leading-tight | 1.25 |
--bima-leading-snug | 1.375 |
--bima-leading-normal | 1.5 |
--bima-leading-relaxed | 1.75 |
--bima-tracking-tight | -0.02em |
--bima-tracking-normal | 0 |
--bima-tracking-wide | 0.08em |
Spacing
A 4px base scale. Use these for margins, padding, and gaps so rhythm stays consistent.
| Token | Value | Pixels |
|---|---|---|
--bima-space-0 | 0 | 0 |
--bima-space-1 | 0.25rem | 4px |
--bima-space-2 | 0.5rem | 8px |
--bima-space-3 | 0.75rem | 12px |
--bima-space-4 | 1rem | 16px |
--bima-space-5 | 1.25rem | 20px |
--bima-space-6 | 1.5rem | 24px |
--bima-space-7 | 1.75rem | 28px |
--bima-space-8 | 2rem | 32px |
--bima-space-10 | 2.5rem | 40px |
--bima-space-12 | 3rem | 48px |
--bima-space-16 | 4rem | 64px |
--bima-space-20 | 5rem | 80px |
--bima-space-24 | 6rem | 96px |
--bima-space-32 | 8rem | 128px |
Radius
Generous rounding is core to the BIMA “friendly + trustworthy” feel. --bima-radius-bima is the signature card radius; --bima-radius-shell wraps the floating header / footer shells.
| Token | Value | Use |
|---|---|---|
--bima-radius-sm | 0.375rem (6px) | Small chips, code |
--bima-radius-md | 0.625rem (10px) | Inputs, buttons |
--bima-radius-lg | 0.875rem (14px) | Dropdowns, small cards |
--bima-radius-xl | 1.25rem (20px) | Cards |
--bima-radius-2xl | 1.5rem (24px) | Modals, large cards |
--bima-radius-bima | 1.25rem (20px) | Explicit brand card radius |
--bima-radius-shell | 1.875rem (30px) | Floating header / footer shell |
--bima-radius-pill | 2.5rem (40px) | Brand CTA pill |
--bima-radius-full | 9999px | Badges, chips, avatars, switches |
Shadows
Navy-tinted, soft, and lush — the BIMA “floating” look. The scale graduates from barely-there inputs to the signature large card shadow.
| Token | Value |
|---|---|
--bima-shadow-none | none |
--bima-shadow-xs | 0 1px 2px rgba(8, 35, 101, 0.06) |
--bima-shadow-sm | 0 2px 8px rgba(8, 35, 101, 0.08) |
--bima-shadow-soft | 0 6px 20px rgba(8, 35, 101, 0.08) |
--bima-shadow-md | 0 10px 30px rgba(8, 35, 101, 0.10) |
--bima-shadow-card | 0 18px 45px rgba(8, 35, 101, 0.12) |
--bima-shadow-lg | 0 18px 45px rgba(8, 35, 101, 0.12) |
--bima-shadow-dropdown | 0 12px 32px rgba(8, 35, 101, 0.16) |
--bima-shadow-modal | 0 24px 60px rgba(8, 35, 101, 0.22) |
--bima-shadow-xl | 0 28px 70px rgba(8, 35, 101, 0.18) |
--bima-shadow-nav | 0 8px 40px rgba(8, 35, 101, 0.35) |
Z-index
A layering scale so overlapping elements stack predictably.
| Token | Value |
|---|---|
--bima-z-base | 0 |
--bima-z-raised | 10 |
--bima-z-sticky | 20 |
--bima-z-dropdown | 30 |
--bima-z-header | 40 |
--bima-z-backdrop | 50 |
--bima-z-modal | 60 |
--bima-z-popover | 65 |
--bima-z-toast | 70 |
--bima-z-tooltip | 80 |
Motion
Durations and easing curves. Animation communicates state, not decoration — and always respects prefers-reduced-motion.
| Token | Value |
|---|---|
--bima-duration-instant | 100ms |
--bima-duration-fast | 200ms |
--bima-duration-standard | 300ms |
--bima-duration-moderate | 400ms |
--bima-duration-slow | 550ms |
--bima-ease-standard | cubic-bezier(0.4, 0, 0.2, 1) |
--bima-ease-enter | cubic-bezier(0, 0, 0.2, 1) |
--bima-ease-exit | cubic-bezier(0.4, 0, 1, 1) |
--bima-ease-spring | cubic-bezier(0.34, 1.56, 0.64, 1) |
Next steps
See CSS Variables for how to override any of these tokens, and Dark Mode for which subset the dark theme re-declares.