RWDS · Web

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.

In use on rumahl.com

Constraints for the web surface

Content before chrome

Surfaces stay quiet, borders stay hairline, and navigation recedes so the content carries the page.

Readable hierarchy

Display type, line breaks and vertical space exist to make technical content easy to scan.

Explicit interaction

Links, focus states and status stay visible. Nothing important depends on hover alone.
Web only
RWDS is not an OS kit. Windows, shell controls and wallpaper materials belong to RUI. Use RWDS for pages, documentation and editorial content.

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.

Accent--accent
Accent secondary--accent-secondary
Accent hover--accent-hover
Accent contrast--accent-contrast
Background--background
Surface--surface
Surface glass--surface-glass
Foreground--foreground
Foreground muted--foreground-muted
Border--border
Presentation note
This design site is shown on its own violet-tinted neutral theme. The rumahl website and the RWDS default still use the green accent and green-tinted neutrals. The token values are the source of truth.
TokenRoleUse
--accentAccentPrimary action and brand signal
--accent-secondaryAccent secondaryLinks and quiet emphasis
--accent-hoverAccent hoverHover and pressed state for primary actions
--accent-contrastAccent contrastText on accent surfaces
--backgroundBackgroundPage canvas
--surfaceSurfaceCards, panels and documentation
--surface-glassSurface glassSticky navigation and overlays
--foregroundForegroundPrimary text
--foreground-mutedForeground mutedSecondary copy and metadata
--borderBorderHairline separation
Theme contract
A component that hard-codes a colour is outside RWDS. Add a role first, then use it.

Typography

Inter carries display and body text. JetBrains Mono is reserved for code and technical labels.

Display · 44–80px

A local platform. An open project.

XL · 34–56px

Semantic tokens, not raw values.

LG · 26–38px

Section title for documentation.

MD · 22px

Card title

Lead · 18px

A lead paragraph introduces a page in two or three sentences.

Body · 16px

Body copy keeps a line length of roughly 68 characters for comfortable reading.

Measure

Keep running text between 45 and 75 characters. Long measures get more line height, not less.

Targets

Interactive elements are at least 44px high. Compact filter controls keep a 40px minimum.

Contrast

Body text meets 4.5:1 and large text meets 3:1 in both themes. Status labels use a darker amber for small text.

Components

These are the primitives in the website design system. Each one has a Storybook story with controls.

ComponentPurposeStorybook
ButtonActions as links or buttons. Variants: primary, secondary, ghost, inverse.Components/Actions
TextLinkInline links with a clear hover state.Components/Actions
TagStatus and category labels. Tones: neutral, accent, warning.Components/Tag
Heading & TextTitles and running text, each with a visual size and a semantic level.Foundations/Typography
Container & SectionWidth frames and vertical sections with tone and spacing.Foundations/Layout
Grid & StackResponsive columns and vertical rhythm.Foundations/Layout
CardContent surface with title, body and footer. Optionally a link.Components/Card
CalloutNotes, tips and warnings.Components/Callout
DisclosureNative expandable content, accessible without JavaScript.Components/Disclosure
FigureImage with a fixed aspect ratio and caption.Components/Figure
DataTableResponsive table with a shared header style.Components/DataTable
Swatch & CodeBlockToken preview and highlighted code.Foundations/Color

Examples

Button variants
Tags
NeutralAccentWarning
Note
Use a note for context that the reader should know but does not need to act on.
Warning
Use a warning when an action can break something or lose data.
Disclosure
What is a token?
A named, semantic value such as --accent. Components read tokens; themes supply the values.
Can I use raw colours?
Only inside a token definition. Components must not hard-code colours or radii.
css
.card {
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 22px;
}

Layout, surfaces and motion

Layout

Content frame 1320px. Gutters 56px on desktop, 32px on tablet and 22–24px on mobile. Section padding 56–96px.

Surfaces

Page on --background, content on --surface with a hairline border, navigation on --surface-glass.

Motion

State changes take 0.16s, surfaces 0.24s, editorial reveals up to 0.7s. Easing is exponential ease-out; reduced motion removes all of it.

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.
Boundary rule
RWDS does not import RUI, and RUI does not style the website. Read the comparison