Customize

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.

TokenValueRole
--bima-navy #0A2261Primary brand — headers, primary buttons
--bima-navy-hover #082365Primary hover / brand link
--bima-navy-deep #061845Deepest navy — gradients, pressed states
--bima-navy-soft #203868Navy ink — long-form body text on brand
--bima-blue #325CA8Secondary brand — accents, links, info
--bima-blue-hover #416CBASecondary hover
--bima-blue-dark #2F579FSecondary pressed
--bima-blue-light #5291D8Lighter accent
--bima-blue-tint #CEE0F4Faint blue wash
--bima-sky #97CCE7Accent — CTA pills, focus ring, highlights
--bima-sky-light #AEE2F7Lighter sky
--bima-sky-muted #D5EFF9Faint sky wash
--bima-ink #18181CNear-black — densest text, tooltips
--bima-mist #F4F5F7Calm neutral surface — page bg, soft cards

Components reference these through semantic interactive aliases rather than the raw colour:

TokenResolves to
--bima-interactive-primaryvar(--bima-navy)
--bima-interactive-primary-hovervar(--bima-navy-hover)
--bima-interactive-secondaryvar(--bima-blue)
--bima-interactive-secondary-hovervar(--bima-blue-hover)
--bima-interactive-accentvar(--bima-sky)
--bima-interactive-focusvar(--bima-sky)

Surfaces, text & borders

The neutral layers — backgrounds, text levels, and borders. These are the tokens dark mode re-declares.

TokenValueRole
--bima-surface-page #F4F5F7Page background
--bima-surface-subtle #FBFCFDOff-white nested panels
--bima-surface-card #FFFFFFCard surface
--bima-surface-muted #F4F5F7Mist 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 #FFFFFFInput background
--bima-surface-input-disabled #F1F4F8Disabled input background
--bima-text-primary #18181CPrimary text
--bima-text-secondary #404655Secondary text
--bima-text-muted #5E6B7BMuted text — AA (4.5:1) on Mist
--bima-text-inverse #FFFFFFText 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 #9AA3AEDisabled text
--bima-border-default #E4E9F0Default border
--bima-border-strong #CBD5E0Strong border
--bima-border-subtle #EDF1F6Subtle border
--bima-border-focus var(--bima-sky)Focus border
--bima-border-error #EF4444Error / invalid border

Interaction-state backgrounds — reference these instead of one-off rgba() values:

TokenValueRole
--bima-state-hover #F1F4F8Neutral hover (ghost btn, list rows)
--bima-state-hover-strong #E7ECF3Pressed / active press
--bima-state-selected #EAF0FASelected nav item, secondary-btn hover
--bima-state-selected-text var(--bima-blue)Text on a selected item
--bima-row-hover #F8FAFCTable 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 *.

TokenValueRole
--bima-success #1BB792Success fill / dot
--bima-success-dark #0F7A5ASuccess pressed
--bima-success-bg #E6FAF6Success tint
--bima-success-text #0F7A5AText on success-bg (5.3:1)
--bima-warning #FA8C16Warning fill / dot
--bima-warning-dark #B45309Warning pressed
--bima-warning-bg #FFF7E6Warning tint
--bima-warning-text #B45309Text on warning-bg (4.8:1)
--bima-error #EF4444Error fill / dot
--bima-error-dark #DC2626Error pressed
--bima-error-bg #FEF2F2Error tint
--bima-error-text #B91C1CText on error-bg (5.9:1)
--bima-info var(--bima-blue)Info fill / dot
--bima-info-dark #1E4E8CInfo pressed
--bima-info-bg #EBF5FBInfo tint
--bima-info-text #1E4E8CText on info-bg (5.6:1)
--bima-neutral #5E6B7BNeutral fill / dot
--bima-neutral-bg #F1F4F8Neutral tint
--bima-neutral-text #475467Text on neutral-bg (6.4:1)
Success Warning Error Info Neutral

Typography

Quicksand for display / headings, Manrope for body / UI, JetBrains Mono for code — plus the type scale, weights, line-heights, and letter-spacing.

TokenValue
--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-displayclamp(2.75rem, 5vw, 4rem) — fluid hero
--bima-text-h12.5rem (40px)
--bima-text-h22rem (32px)
--bima-text-h31.5rem (24px)
--bima-text-h41.25rem (20px)
--bima-text-h51.125rem (18px)
--bima-text-h61rem (16px)
--bima-text-large1.125rem (18px)
--bima-text-base1rem (16px)
--bima-text-small0.875rem (14px)
--bima-text-caption0.75rem (12px)
--bima-font-light300
--bima-font-regular400
--bima-font-medium500
--bima-font-semibold600
--bima-font-bold700
--bima-leading-tight1.25
--bima-leading-snug1.375
--bima-leading-normal1.5
--bima-leading-relaxed1.75
--bima-tracking-tight-0.02em
--bima-tracking-normal0
--bima-tracking-wide0.08em

Spacing

A 4px base scale. Use these for margins, padding, and gaps so rhythm stays consistent.

TokenValuePixels
--bima-space-000
--bima-space-10.25rem4px
--bima-space-20.5rem8px
--bima-space-30.75rem12px
--bima-space-41rem16px
--bima-space-51.25rem20px
--bima-space-61.5rem24px
--bima-space-71.75rem28px
--bima-space-82rem32px
--bima-space-102.5rem40px
--bima-space-123rem48px
--bima-space-164rem64px
--bima-space-205rem80px
--bima-space-246rem96px
--bima-space-328rem128px

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.

TokenValueUse
--bima-radius-sm0.375rem (6px)Small chips, code
--bima-radius-md0.625rem (10px)Inputs, buttons
--bima-radius-lg0.875rem (14px)Dropdowns, small cards
--bima-radius-xl1.25rem (20px)Cards
--bima-radius-2xl1.5rem (24px)Modals, large cards
--bima-radius-bima1.25rem (20px)Explicit brand card radius
--bima-radius-shell1.875rem (30px)Floating header / footer shell
--bima-radius-pill2.5rem (40px)Brand CTA pill
--bima-radius-full9999pxBadges, 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.

TokenValue
--bima-shadow-nonenone
--bima-shadow-xs0 1px 2px rgba(8, 35, 101, 0.06)
--bima-shadow-sm0 2px 8px rgba(8, 35, 101, 0.08)
--bima-shadow-soft0 6px 20px rgba(8, 35, 101, 0.08)
--bima-shadow-md0 10px 30px rgba(8, 35, 101, 0.10)
--bima-shadow-card0 18px 45px rgba(8, 35, 101, 0.12)
--bima-shadow-lg0 18px 45px rgba(8, 35, 101, 0.12)
--bima-shadow-dropdown0 12px 32px rgba(8, 35, 101, 0.16)
--bima-shadow-modal0 24px 60px rgba(8, 35, 101, 0.22)
--bima-shadow-xl0 28px 70px rgba(8, 35, 101, 0.18)
--bima-shadow-nav0 8px 40px rgba(8, 35, 101, 0.35)

Z-index

A layering scale so overlapping elements stack predictably.

TokenValue
--bima-z-base0
--bima-z-raised10
--bima-z-sticky20
--bima-z-dropdown30
--bima-z-header40
--bima-z-backdrop50
--bima-z-modal60
--bima-z-popover65
--bima-z-toast70
--bima-z-tooltip80

Motion

Durations and easing curves. Animation communicates state, not decoration — and always respects prefers-reduced-motion.

TokenValue
--bima-duration-instant100ms
--bima-duration-fast200ms
--bima-duration-standard300ms
--bima-duration-moderate400ms
--bima-duration-slow550ms
--bima-ease-standardcubic-bezier(0.4, 0, 0.2, 1)
--bima-ease-entercubic-bezier(0, 0, 0.2, 1)
--bima-ease-exitcubic-bezier(0.4, 0, 1, 1)
--bima-ease-springcubic-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.