Module: RoundhouseUi::Theme
- Defined in:
- lib/roundhouse_ui/theme.rb
Overview
Host-configurable colours, as pure CSS custom properties.
RoundhouseUi.theme = { accent: "#FF00FF", accent_2: "#00E5FF" }
or per mode, since a colour that reads well on near-black rarely reads well on near-white:
RoundhouseUi.theme = {
dark: { bg: "#0B0E14", accent: "#FF2BD1" },
light: { bg: "#FFF7FB", accent: "#B3009E" }
}
Keys are the token names without the leading dashes; underscores become
dashes, so accent_2 sets --accent-2. Anything the layout already defines
can be overridden and nothing else — an unknown key is ignored rather than
emitted, because a typo silently adding a property is worse than a typo that
visibly does nothing.
A preset ships as PRESETS; merge or replace as you like.
Constant Summary collapse
- TOKENS =
The tokens the layout actually consumes. An allowlist rather than a denylist: this is interpolated into a