Theme variables
Every variable a theme can set, grouped by what it affects. The defaults are in the app's tokens.css.
#Accent
Changing --wz-accent alone re-tints the whole app. The others are derived from it with color-mix(), so you rarely need to set them.
| Variable |
Used for |
--wz-accent |
Selection, primary buttons, unread badges, switches, focus rings |
--wz-accent-hover |
Hover state of accent surfaces |
--wz-accent-active |
Pressed state of accent surfaces |
--wz-accent-fg |
Text and icons on top of the accent |
--wz-accent-soft |
A light tint, for example your own reaction |
--wz-accent-text |
Accent used as text: links, "typing…", names in quotes |
#Surfaces
| Variable |
Used for |
--wz-bg-app |
The window behind cards (sign-in screen) |
--wz-bg-primary |
Sidebar, headers, message box, settings |
--wz-bg-secondary |
Settings navigation, notes, banners |
--wz-bg-elevated |
Menus, popovers, dialogs |
--wz-bg-hover |
Hover overlay for rows and icon buttons (translucent) |
--wz-bg-active |
The selected row: open chat, current settings page |
--wz-bg-input |
Search field, message box, segmented controls |
--wz-bg-conversation |
Behind the message bubbles |
#Text
| Variable |
Used for |
--wz-text-primary |
Body text and names |
--wz-text-secondary |
Less important text, quotes |
--wz-text-muted |
Times, hints, descriptions, placeholders |
--wz-text-on-accent |
Same as --wz-accent-fg |
#Borders and elevation
| Variable |
Used for |
--wz-border |
Hairlines between areas and around cards |
--wz-border-strong |
Secondary buttons, key hints, scrollbars |
--wz-shadow-popover |
The only shadow in the app: menus, popovers, dialogs |
--wz-scrim |
The dimmed backdrop behind dialogs |
--wz-focus-ring |
Keyboard focus ring (a box-shadow value) |
#Bubbles
| Variable |
Used for |
--wz-bubble-in, --wz-bubble-in-text |
Incoming bubble and its text |
--wz-bubble-out, --wz-bubble-out-text |
Outgoing bubble, accent-tinted by default |
--wz-bubble-in-meta, --wz-bubble-out-meta |
Time, "edited" and ticks inside bubbles |
--wz-bubble-border |
The faint outline around bubbles |
--wz-bubble-deleted-border |
The dashed outline of deleted messages that were kept |
--wz-bubble-highlight |
The flash when jumping to a message |
--wz-tick-read |
The "read" double tick |
#Status colours
| Variable |
Used for |
--wz-danger, --wz-danger-soft |
Destructive actions and errors |
--wz-warning, --wz-warning-soft |
The offline banner |
--wz-success |
The online dot |
#Logo
The logo is drawn inline, so its lettering follows the theme. Change these carefully: the mark is the brand.
| Variable |
Used for |
--wz-logo-bubble |
The speech-bubble mark |
--wz-logo-sun |
The rising sun in the mark and on the Z |
--wz-logo-accent |
The "Zori" part of the wordmark |
#Avatars
Avatars without a picture are initials on a tinted circle. The hue comes from the name; a theme sets how strong it is.
| Variable |
Used for |
--wz-avatar-saturation |
Saturation of the background |
--wz-avatar-lightness |
Lightness of the background |
--wz-avatar-text-lightness |
Lightness of the initials |
#Shape, type and spacing
| Variable |
Used for |
--wz-radius-sm, -md, -lg |
6, 8 and 12 px: buttons, cards, dialogs |
--wz-radius-bubble |
Bubble corners (the tail corner is tighter) |
--wz-radius-full |
Pills and badges |
--wz-font-ui |
The interface font, the system font by default |
--wz-font-mono |
Monospace: pairing code, IDs |
--wz-font-scale |
Text size multiplier, set from the settings |
--wz-font-size-xs … -xl |
11, 12.5, 14, 16, 20 px, times the scale |
--wz-line-height |
Base line height |
--wz-space-1 … -8 |
4, 8, 12, 16, 20, 24, 32, 40 px |
#Layout
| Variable |
Used for |
--wz-sidebar-width |
Set from the resizer, 260 to 480 px |
--wz-header-height |
Sidebar and chat headers |
--wz-chat-item-height |
Chat list rows: 68 px, or 56 px in compact density |
--wz-bubble-max-width |
Widest a bubble gets |
--wz-message-gap |
Gap between bubbles in a run |
--wz-group-gap |
Gap after the last bubble of a run |
#Motion
| Variable |
Used for |
--wz-duration-fast, --wz-duration |
120 and 160 ms; both 0 when the system asks for reduced motion |
--wz-ease |
The standard easing curve |
#Notifications
On Windows, WhatsZori's notification cards are a small separate window running the same CSS. These variables are set on .wz-ntf-stack:
| Variable |
Default |
Used for |
--wz-ntf-width |
340px |
Card width |
--wz-ntf-bg |
--wz-bg-elevated |
Card background |
--wz-ntf-fg |
--wz-text-primary |
Text |
--wz-ntf-muted |
--wz-text-muted |
Time and close button |
--wz-ntf-border |
8 % of the text colour |
The hairline around the card |
--wz-ntf-radius |
14px |
Corner radius |
--wz-ntf-shadow |
a soft two-layer shadow |
Card shadow |
--wz-ntf-accent |
--wz-accent |
Reply and Mark as read, the reply field |
--wz-ntf-gap |
8px |
Space between stacked cards |
The notification window has html[data-window="toast"]. Its background always stays transparent.
#Chat wallpaper
| Variable |
Used for |
--wz-user-wallpaper |
The user's image, as a url() |
--wz-user-wallpaper-dim |
The dark veil over it, 0 to 0.8 |
Both are set only while a wallpaper is chosen, together with data-wz-wallpaper on <html>.
#Stable class names
These are kept across versions on purpose. The list isn't complete, but covers what themes usually need.
| Area |
Classes |
| Layout |
.wz-app, .wz-sidebar, .wz-main, .wz-resizer, .wz-banner |
| Chat list |
.wz-chat-item, .wz-chat-item--active, --unread, --muted, .wz-chat-list__header |
| Messages |
.wz-message, .wz-message--in, --out, .wz-bubble, .wz-bubble--in, --out, --tail, --first, --deleted, --unknown |
| Inside bubbles |
.wz-quote, .wz-reaction, .wz-reaction--mine, .wz-media--image, --video, --document, --voice, .wz-poll, .wz-view-once |
| Other |
.wz-day (date separators), .wz-conv-header, .wz-composer, .wz-composer__input |
| Controls |
.wz-button--primary, --secondary, --ghost, --danger, .wz-icon-button, .wz-toggle, .wz-segmented, .wz-menu, .wz-popover, .wz-dialog, .wz-badge, .wz-avatar |
| Notifications |
.wz-ntf, .wz-ntf--summary, .wz-ntf__main, __title, __body, __time, __close, __actions, __action, __reply, __input |
| Plugins |
Plugin content renders inside .wz-plugin-slot[data-slot="…"] |