Seven themes — or write your own.
Themes are just CSS custom properties applied to the host element — switching one is instant and never re-renders. Preview every built-in theme below, compare two side-by-side, or open the studio to tweak any token and copy the result straight into your app.
Jump to section
Built-in theme gallery
Each card below is a real <streaming-ui-script>
running the same tiny program in a different theme. Click Try in
preview to load that theme into the live preview further down
the page.
Theme picker & live preview
Pick a theme — the preview below updates instantly. Want to test your own program? Expand the editor and paste it in.
Edit preview program
Compare two themes
Pick any two themes and see the same content rendered side-by-side. The panes scroll in sync so it's easy to spot differences in spacing, radii, and surface contrast.
Customization studio
Tweak any token and watch the live preview update in real time. The
studio remembers your edits in localStorage, so you can
come back later and keep iterating. Copy the result as a
setTheme() call, as raw CSS variables, or download the
full JSON.
Copy output
Use it from your app
Every option below hits the same code path — pick the one that
fits your stack. Built-in names additionally set
data-rui-theme on the host so the bundled stylesheet can
layer on theme-specific tweaks (fonts, gradients, animations).
1. Built-in name (attribute)
<streaming-ui-script theme="neon"></streaming-ui-script>
2. JSON token map (attribute)
<streaming-ui-script
theme='{"colorPrimary":"#16a34a","radiusMd":"14px"}'>
</streaming-ui-script>
3. Programmatic setTheme()
const el = document.querySelector("streaming-ui-script");
el.setTheme("dark");
el.setTheme({
colorPrimary: "#16a34a",
colorPrimaryHover: "#15803d",
colorBg: "#f0fdf4",
radiusMd: "14px",
});
4. Host-page CSS variable override
streaming-ui-script {
--rui-color-primary: #16a34a;
--rui-radius-md: 14px;
}
Partial maps are merged on top of light
Only override what you need — everything else falls back to the default light theme tokens.
Token reference
Every theme token, its corresponding CSS custom property, and what it affects. Use the search box to filter by name or description.
| Token | CSS variable | Current value | Description |
|---|