Skip to content
livrasand edited this page Nov 28, 2026 · 1 revision

Custom CSS

Updainium supports two kinds of CSS customization: complete themes, and a single styles.css file for quick changes. This page covers the color variables used by both, and how styles.css is loaded.

styles.css

styles.css is an optional file in Updainium's configuration folder. Updainium loads it when the app starts and applies its rules after the active theme, so rules in styles.css win when they conflict with a theme.

To create or edit it, open the Command Palette and run Open styles.css. If the file does not exist yet, Updainium creates it and opens it in your default text editor.

body {
  font-family: monospace;
}

.snackbar {
  border-radius: 4px;
}

Use styles.css for small adjustments, such as fonts or corner radius. Use a theme when you want to change the whole color scheme.

CSS variables

Colors come from nine variables. Set them on :root in a theme or in styles.css:

Variable Used for
--up-bg Main background of the window
--up-surface Cards, panels, and lists
--up-surface-raised Raised elements such as hover cards and dialogs
--up-surface-muted Muted surfaces, chips, and sub-elements
--up-text Primary text
--up-muted Secondary text
--up-subtle Subtle text, icons, and placeholders
--up-border Borders and dividers
--up-accent Buttons, links, and highlights

For example, this sets the accent color:

:root {
  --up-accent: #bd93f9;
}

Updainium also maps older variable names, such as --page, --surface, --text, and --accent, onto these --up-* variables. This keeps the interface consistent when a theme changes them.

Selectors that a theme reaches

The theme layer also styles common interface elements directly, including .app-shell, .topbar, .system-card, and .primary-button, so theme colors reach these elements without extra rules. Overrides for other selectors depend on the current interface markup.

Development builds

When you run Updainium with npm run tauri dev, it can also read styles.css and themes from the project root. Release builds read them from the configuration folder only.

Clone this wiki locally