Themes

Themes for rumahl OS.

Define the colours, shapes and typography of rumahl OS with RUI tokens. Build light and dark modes, expose settings such as accent colour and package everything the shell needs to render the theme offline. Distribute themes through the same public store as apps.

RUI · not RWDS Light & dark Sandboxed code No remote assets store.rumahl.com
The contract

One theme, every surface.

Start with a base theme and set semantic roles such as surface, text and accent. Define values for both appearance modes if you support them, then use parameters with safe defaults for choices users can adjust in Settings.

Self-contained by default

A theme must render without the network.

A theme is visual data. Remote fonts, images, styles or scripts are dependencies, not theme assets. Use tokens, local CSS and system resources; keep the preview image for the gallery, not the runtime.

Read the theme rules
Theme packageNo remote fonts or images

Tokens and local CSS, not a remote asset bundle.

The theme package inlines its styles and optional code. It has no remote font or image field, so a theme that needs a CDN is not portable and not offline-safe.

  • Fonts: a system stack or an OS-bundled face; no Google Fonts or remote @font-face.
  • Images: gradients, patterns and token-driven surfaces; preview.png is gallery metadata, not a runtime background.
  • Code: presentation only; no fetch, XHR, WebSocket or remote scripts.
Read the packaging check
Before you start

Use RUI tokens for the shell

Use the RUI token reference when you choose values for the shell, launcher and windows. The RWDS token set belongs to websites and documentation.

Create a theme
Current state

Local packages and the public store.

Themes install and validate locally, and are distributed through the same public store as apps at store.rumahl.com. Package downloads and updates resolve to github.com/rumahl/apps; local install remains for development, offline use and private themes.

  • Packagetheme.json, or a ZIP with theme.json at the root or one directory deep.
  • ModesLight, dark or both; the shell falls back to a supported mode.
  • CodeOptional theme code is sandboxed by default; full shell access needs explicit trust.
  • DistributionThe public store at store.rumahl.com; downloads and updates from github.com/rumahl/apps.
  • LimitsNo theme certification or support promise yet.
Dos and don’ts

Rules for themes.

A theme changes semantic tokens, not component structure. It should survive a new component, a new mode and a different screen without knowing which app is on screen — and it should render without the network.

Do7

Start from the semantic token set and keep the light and dark roles paired.

Use parameters for user choices such as accent, density or radius; keep layout structure in the components.

Test every bundled mode, both color schemes and a 390px viewport.

Ship tokens, assets and the manifest together, and bump the version when any of them changes.

Give every parameter a safe default so the theme still renders when a value is missing.

Keep the theme self-contained: system fonts, tokens and local CSS.

Test with the network disconnected and keep preview.png out of runtime CSS.

Don’t7

Hard-code raw colors outside the token set, or override component internals with theme CSS.

Depend on a specific app, store catalogue or page being present.

Edit the synced RWDS files in place instead of extending them.

Use a parameter to change information architecture or hide required controls.

Publish a theme package without its assets or with a version that did not change.

Use remote @import, fonts, wallpapers or images.

Fetch data from theme code or make rendering depend on a network call.