All articles
Back to Design docs
Web design system

RWDS tokens

The semantic colour, typography, shape, spacing and motion roles used by the rumahl website.

5 min read Updated: 18 November 2026
Markdown

Token source

RWDS tokens are CSS custom properties defined in the website theme. The shared values live in app/rwds-tokens.css; the website imports them into its global stylesheet.

css
:root {
  --background: #e8ece7;
  --surface: #f8faf7;
  --foreground: #18201c;
  --foreground-muted: #5f6a62;
  --accent: #28694c;
  --accent-hover: #1f5a41;
  --accent-secondary: #3f8a68;
  --border: #d3dbd1;
}

Colour roles

TokenRole
--accentPrimary brand and action signal
--accent-secondaryQuiet emphasis and secondary iconography
--accent-hoverHover and pressed state for primary actions
--accent-contrastText on accent surfaces
--backgroundPage canvas
--surfaceCards, panels and documentation
--surface-glassSticky navigation and overlays
--foregroundPrimary text
--foreground-mutedSecondary copy and metadata
--borderHairline separation

Accent families

RWDS supports multiple accent families. A project can generate a different scale without changing the fixed identity: semantic roles, typography, spacing, radii, surfaces and motion stay the same.

  • The seed colour is the 500 step of a 50–950 scale.
  • Light and dark semantic roles are picked from steps that meet contrast.
  • Only the accent family changes; layout and type do not.
  • Use the Color Table Generator at /design/color to create and validate a scale.

Typography, spacing and shape

  • Inter is the primary text and display face.
  • JetBrains Mono is reserved for code, tokens and technical labels.
  • Display tracking stops at -0.035em so large headings stay legible.
  • Body copy uses 1.65 line height and a 68ch measure (45–75 characters).
  • Spacing steps: 4, 8, 12, 16, 24, 32, 48, 64 and 96px.
  • Interactive targets are at least 44px high; compact filters keep 40px.
  • Radii: 12–28px for cards, 20–40px for sections, pill-shaped actions.
  • The content frame is 1320px with 56px desktop gutters.

Rules

  • Components read semantic roles, never hard-coded colours.
  • Light and dark provide values for the same roles.
  • New tokens must be additive and documented before use.
  • RWDS tokens do not use the RUI --rumahl-ui-* namespace.

Need the implementation? Open the design resources or the source repository.

On this page