---
title: "RWDS tokens"
description: "The semantic colour, typography, shape, spacing and motion roles used by the rumahl website."
url: "https://rumahl.com/design/docs/rwds-tokens"
section: "Web design system"
group: "RWDS"
updated: "18 November 2026"
---

# RWDS tokens

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

**Area:** Web design system  
**Group:** RWDS  
**Updated:** 18 November 2026  
**Reading time:** 5 min  
**HTML:** https://rumahl.com/design/docs/rwds-tokens

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

| Token | Role |
| --- | --- |
| --accent | Primary brand and action signal |
| --accent-secondary | Quiet emphasis and secondary iconography |
| --accent-hover | Hover and pressed state for primary actions |
| --accent-contrast | Text on accent surfaces |
| --background | Page canvas |
| --surface | Cards, panels and documentation |
| --surface-glass | Sticky navigation and overlays |
| --foreground | Primary text |
| --foreground-muted | Secondary copy and metadata |
| --border | Hairline 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.
