rumahl Web Design System
RWDS is the design system for rumahl on the web. It is built for websites, documentation and editorial surfaces. This reference covers its tokens, typography, layout, surfaces, motion and components. RUI is the operating-system design system and is not intended for web pages.
Constraints for the web surface
Content before chrome
Readable hierarchy
Explicit interaction
Colour roles
Components read semantic roles, never raw values. Light and dark are two values for the same roles. RWDS supports multiple accent families; a project can change the accent and the neutral tint without changing the layout, type, spacing or motion.
| Token | Role | Use |
|---|---|---|
--accent | Accent | Primary action and brand signal |
--accent-secondary | Accent secondary | Links and quiet emphasis |
--accent-hover | Accent hover | Hover and pressed state for primary actions |
--accent-contrast | Accent contrast | Text on accent surfaces |
--background | Background | Page canvas |
--surface | Surface | Cards, panels and documentation |
--surface-glass | Surface glass | Sticky navigation and overlays |
--foreground | Foreground | Primary text |
--foreground-muted | Foreground muted | Secondary copy and metadata |
--border | Border | Hairline separation |
Typography
Inter carries display and body text. JetBrains Mono is reserved for code and technical labels.
A local platform. An open project.
Semantic tokens, not raw values.
Section title for documentation.
Card title
A lead paragraph introduces a page in two or three sentences.
Body copy keeps a line length of roughly 68 characters for comfortable reading.
Measure
Targets
Contrast
Components
These are the primitives in the website design system. Each one has a Storybook story with controls.
| Component | Purpose | Storybook |
|---|---|---|
Button | Actions as links or buttons. Variants: primary, secondary, ghost, inverse. | Components/Actions |
TextLink | Inline links with a clear hover state. | Components/Actions |
Tag | Status and category labels. Tones: neutral, accent, warning. | Components/Tag |
Heading & Text | Titles and running text, each with a visual size and a semantic level. | Foundations/Typography |
Container & Section | Width frames and vertical sections with tone and spacing. | Foundations/Layout |
Grid & Stack | Responsive columns and vertical rhythm. | Foundations/Layout |
Card | Content surface with title, body and footer. Optionally a link. | Components/Card |
Callout | Notes, tips and warnings. | Components/Callout |
Disclosure | Native expandable content, accessible without JavaScript. | Components/Disclosure |
Figure | Image with a fixed aspect ratio and caption. | Components/Figure |
DataTable | Responsive table with a shared header style. | Components/DataTable |
Swatch & CodeBlock | Token preview and highlighted code. | Foundations/Color |
Examples
What is a token?
--accent. Components read tokens; themes supply the values.Can I use raw colours?
.card {
background: var(--surface);
color: var(--foreground);
border: 1px solid var(--border);
border-radius: 22px;
}
Layout, surfaces and motion
Layout
Surfaces
--background, content on --surface with a hairline border, navigation on --surface-glass.Motion
Working with RWDS
Start with the page structure
Choose the page pattern first: documentation, editorial, product or campaign. Then compose it from Container, Section, Grid and Stack.
- Use one display heading per page.
- Keep the reading column below roughly 680px.
- Use surface and alt sections to separate topics, not decoration.
Then use the components
Buttons, cards, callouts, disclosures, figures and tables have a defined API and a Storybook story. Reuse them instead of rebuilding a page pattern.
- Prefer semantic tokens over local colour values.
- Check light and dark, keyboard focus and reduced motion.
- Use the generator for a new accent family, not for a new layout.
Do
- Use the documented components and tokens.
- Keep the typography, spacing and motion consistent.
- Test long-form content and narrow viewports.
- Update the Storybook with the component.
Don't
- Do not import RUI into a website.
- Do not hard-code colours or radii.
- Do not treat a new accent as a new design system.
- Do not use a page block as a reusable component.