DBM Design System

The centralized styleguide for the DBM Client Hub. Every color, type style, and spacing value lives here. All future updates should reference and follow these tokens to keep the product consistent across web and mobile.

Source: src/lib/designSystem.js · Tokens: src/index.css
01

Color Palette

All color tokens. Use var(--ds-*) in CSS, or import from @/lib/designSystem in JS.

Core
ink
#20211f · --ds-ink
Primary text, dark surfaces
paper
#ffffff · --ds-paper
Page background
accent
#f0643b · --ds-accent
Primary actions, highlights
accentHover
#ff7955 · --ds-accent-hover
Accent hover state
accentPress
#d95331 · --ds-accent-press
Accent active state
sage
#a9b7a2 · --ds-sage
Secondary accent, success
sageDeep
#65826a · --ds-sage-deep
Success indicator
Text
text
#20211f · --ds-text
Body text
textMuted
#55564f · --ds-text-muted
Secondary text
textSubtle
#76776e · --ds-text-subtle
Labels, metadata
textOnDark
#f1ede5 · --ds-text-on-dark
Text on dark surfaces
textOnDarkMuted
#c9c8bf · --ds-text-on-dark-muted
Muted on dark
Surfaces
surface
#fffdf8 · --ds-surface
Warm card surface
surfaceAlt
#f8f6f4 · --ds-surface-alt
Alternate surface
surfaceDark
#20211f · --ds-surface-dark
Dark panel
surfaceDarkAlt
#2d2e2a · --ds-surface-dark-alt
Dark panel hover
Borders
border
rgba(32, 33, 31, 0.19) · --ds-border
Standard border
borderSubtle
rgba(32, 33, 31, 0.09) · --ds-border-subtle
Subtle divider
borderOnDark
rgba(241, 237, 229, 0.36) · --ds-border-on-dark
Border on dark
02

Typography Scale

Six type styles. Display for heroes, micro for labels. Always use the token, never a raw size.

Display66pxweight 850lh 0.98ls -0.065em--ds-display-size
Welcome to DBM
Heading22pxweight 850lh 1.2ls -0.045em--ds-heading-size
Everything in one place
Subheading17pxweight 850lh 1.2ls -0.03em
Start a New Project
Body15pxweight 400lh 1.65--ds-body-size
A client portal designed to make every step clear, connected, and easy.
Small12pxweight 400lh 1.55--ds-small-size
Messages, updates, files, and approvals in one hub.
Micro10pxweight 800lh 1.35ls 0.18em--ds-micro-size
At a glance
03

Spacing Scale

Eight steps from 4px to 58px. Use these for all padding, margins, and gaps.

xs4px
sm8px
md12px
lg16px
xl22px
2xl29px
3xl37px
4xl58px
Page: 24px horizontal padding (16px mobile), max-width 971px.
Sections: 37px between major sections, 22px between cards.
Elements: 12px between related items, 8px within tight groupings.
04

Radii & Shadows

Corner radius and elevation tokens.

Border Radius
default
4px · --ds-radius
sm
3px · --ds-radius-sm
xs
2px · --ds-radius-xs
Shadows
default
--ds-shadow
sm
--ds-shadow-sm
lg
--ds-shadow-lg
05

Component Patterns

Reusable patterns for buttons, cards, inputs, and steps.

Buttons
44px min touch target · accent bg · ink text
Buttons on Dark
Cards
Light card — informational content, warm surface.
Dark card — actions and emphasis.
Input
Border on rest · accent on focus
06

Interaction States

Every interactive element should have visible rest, hover, focus, and disabled states.

HoverSubtle background or border change at 0.2s. Avoid dramatic transforms.
ActiveSlightly darker background or translateY(0) to confirm press.
Focus2px solid accent outline, 3px offset. Never remove without replacement.
DisabledOpacity 0.5, cursor not-allowed. Never use color alone to convey state.
LoadingOpacity 0.7, pointer-events none. Show a spinner or skeleton.
07

Usage Guidance

Follow these rules to keep every screen consistent.

Color Rules

  • ink: Primary text, dark surfaces, and strong contrast elements.
  • paper: Page background — the foundation of the clean white aesthetic.
  • accent: Primary actions, active states, and key highlights. Use sparingly for impact.
  • sage: Secondary accent, success states, and informational badges.
  • textMuted: Secondary text, descriptions, and supporting copy.
  • textSubtle: Tertiary text, labels, and metadata.
  • textOnDark: All text on dark surfaces (#20211f).

Typography Rules

  • display: Hero headlines only — one per page. 66px desktop, 40px mobile.
  • heading: Section titles and card headers. 22px, tight tracking.
  • subheading: Card titles and item headers. 17px.
  • body: Paragraphs, descriptions, and primary content. 15px, 1.65 line height.
  • small: Captions, metadata, and secondary info. 12px.
  • micro: Eyebrows, labels, and uppercase tags. 10px, wide tracking, uppercase.

Responsive Rules

  • mobile: Stack grids to single column. Reduce display type to 40px. Full-bleed imagery where possible.
  • desktop: Two-column grids for side-by-side content. Full display type at 66px.
  • touch: All interactive elements must be at least 44x44px.

Motion Rules

  • entrance: Rise animation (translateY 16px to 0, opacity 0 to 1) with staggered delays.
  • hover: Subtle background/shadow changes at 0.2s. Avoid dramatic transforms.
  • carousel: 1s opacity crossfade for photos. 0.36s arrive animation for content.
  • reduced: Disable all animations when prefers-reduced-motion is set.

Accessibility

  • Touch targets: 44px minimum (WCAG 2.5.5)
  • Focus ring: 2px solid var(--ds-accent) with 3px offset
  • Contrast: 4.5:1 normal, 3:1 large text
  • Reduced motion: disable all animations when prefers-reduced-motion is set

How to Use

  • CSS: Use var(--ds-*) tokens in scoped styles
  • JS: Import tokens from @/lib/designSystem
  • New components: follow the patterns above for states and spacing
  • Never hardcode colors, sizes, or spacing — always use a token