RUI · Operating system

rumahl UI

RUI is the design system and component library of the rumahl OS shell and its apps. It is not a website design system: its density, materials, window chrome and interaction model are built for the OS, so using it on a website is not meaningful even where a component can technically render. Storybook is the detailed reference.

In development

Purpose and boundary

Not for websites
RUI is an operating-system design system. It is not intended for websites, documentation pages or marketing surfaces. Those belong to RWDS. RUI components may render in a browser, but their focus and semantics are the OS shell.

Package boundary

RUI ships components, hooks, icons, styles and tests as one package. It is not a loose set of CSS classes.

Theme contract

A theme is a validated set of tokens, optional CSS and safe templates. Switching themes needs no rebuild.

Accessibility

Native elements, accessible names, associated errors, visible focus and the Storybook a11y addon are part of the contract.

The shell owns behaviour. Themes change appearance. Apps add content only through defined interfaces.

Tokens

RUI tokens are projected onto the shell root as --rumahl-ui-* custom properties. Components read tokens; a theme supplies the values.

GroupPurpose
color.*Accent, surfaces, text, canvas, panel, outline and shadow
material.*Blur, saturation, opacity and glass strength
shape.*Corner radii and icon sizes
motion.*Durations and easing
typography.*UI and display faces and the type scale
layout.*Layout primitives for shell and app surfaces
texture.wallpaperWallpaper-aware surface treatment

Materials

Glass

The default control material for navigation and controls over the OS surface.

Solid

Flat, opaque surfaces where translucency would reduce clarity.

Floating

An element state for controls over a picture or another surface. A floating control is its own island.

Component groups

GroupExamples
Window & chromeWindow, toolbar, tray, menu bar
ControlsButton, inputs, select, search, stepper, colour picker
FeedbackBadge, notice, toast, progress, skeleton, tooltip
NavigationTabs, steps, breadcrumbs, sidenav, navbar, list
OverlaysDialog, anchored popover, menus
LayoutsApp layout, settings, mobile shell, launcher, split views

Working with RUI

Use the package

Import components, hooks, icons, styles and providers from @rumahl/ui. Do not copy component CSS into an app.

Theme with tokens

Wrap the surface in ThemeProvider and let the shell resolve the active theme. Components read tokens, not local colours.

Check in Storybook

Use the component explorer or the full Storybook to inspect states, layouts, theming and accessibility before shipping.
Not covered by RUI
Websites, documentation pages, editorial layouts and marketing surfaces belong to RWDS. RUI is an operating-system system and is not intended for websites.

Theming

Theme model

An id, a name and supported modes, token values for colour, material, shape, motion, typography, layout and texture, optional CSS and safe slot templates.

Runtime

ThemeProvider projects the active tokens onto the document root. The shell resolves the theme from account and device preferences.

Stability
Token IDs and component props are a public contract and follow semver: add, deprecate, then remove.
Boundary rule
RUI does not style the website. RWDS owns the web canvas and long-form reading. Read the comparison