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.
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