A token is a CSS custom property --pv-<name> that the game's own stylesheets read. A theme sets some of the 310 tokens of the contract in tokens.css; the others keep the game's value, so a theme may be partial. This page is generated from crates/themes/tokens.json, the file the validator itself reads: a name that is not in it is refused. Each token has a kind, a typed value that Rust parses with a strict grammar, and sometimes bounds.
Contents
The tables are grouped by purpose.
- Value kinds
- The file tokens.css
- Base colours
- Text colours
- Surfaces
- State tones
- Results and ranks
- Typography
- Spacing and sizes
- Radii
- Borders and focus
- Plate shapes
- Shadows
- Motion
- Map picture and overlays
- Progression graph
- Layout choices
- Component tokens
- Rules that cross several tokens
Value kinds
Each token has one kind. A value that does not match its kind is refused, whatever the CSS meaning of the words.
| Kind | Accepted values |
|---|---|
color |
#rgb, #rgba, #rrggbb, #rrggbbaa; rgb(), rgba(), hsl(), hsla() with plain numbers, in comma syntax or space syntax (/ alpha); color-mix(in srgb, <color> [n%], <color> [n%]); transparent, white, black; and var(--pv-<color token>), the only reference a value may make. Channels are 0–255 (or percentages), alpha 0–1, hue −360 to 720 deg, saturation and lightness 0–100 %. Functions nest at most 4 deep. |
length |
A number with a unit (px, em, rem, %, vw, vh, vmin, vmax) or a bare 0; clamp(a, b, c), min(a, b) and max(a, b) of lengths, nested at most 2 deep. At most 10 000 px, or 1 000 in any other unit. Never negative unless the token is marked negative allowed. The bounds of a token (the Bounds column) are checked on values written in px. |
font |
1 to 8 families separated by commas: quoted names or plain words (letters, digits, spaces, ., _, -, at most 64 characters), the last one a generic family (sans-serif, serif, monospace, system-ui, ui-monospace, cursive). |
weight |
A whole number from 1 to 1000. |
opacity |
A number from 0 to 1. |
easing |
ease, ease-in, ease-out, ease-in-out, linear, or cubic-bezier(x1, y1, x2, y2) with x from 0 to 1 and y from −4 to 4. |
clip |
none; polygon(x y, …) with 3 to 16 points whose coordinates are lengths or calc(<n>% ± <n>px); or inset(…) with 1 to 4 offsets, then optionally round and 1 to 4 radii. |
layers |
none, or 1 to 4 comma-separated linear-gradient(…) or repeating-linear-gradient(…): an optional angle (90deg, from −720 to 720) or to <side> [side], then 2 to 12 stops, each a colour followed by up to two positions. Other gradients are refused. |
filter |
none, or up to 6 functions among saturate(), brightness(), contrast(), grayscale(), sepia(), opacity() (a number up to 4, or a percentage up to 400 %), hue-rotate(<n>deg), blur(<n>px) (at most 12 px) and drop-shadow(<x> <y> [<blur>] <color>) (offsets at most 48 px, blur not negative). |
image |
none, or image("relative/path.png"): a picture of the theme folder (png, jpg, jpeg, webp, gif, svg), at most 4 MiB. The path is in double quotes, relative, inside the folder. |
duration |
A number followed by ms or s, from 0 to 3 seconds. |
shadow |
none, or 1 to 4 comma-separated shadows [inset] <x> <y> [<blur> [<spread>]] <color>. Lengths are in px (or a bare 0), at most 128 px, the blur not negative; the colour comes last. |
ratio |
A unitless number inside the bounds of the token (line heights). |
case |
none, uppercase, lowercase or capitalize. |
scheme |
dark or light. |
choice |
One word of the list of the token, written alone. Any other word, several words, an empty value, a number or a var() is refused. The first word of a list is the current layout and the value of a token that is not set. |
Reading the tables
Bounds apply to a px value: 0–400 px is a range, ≥ 12 px a minimum (the type scale never goes under 12 px), ≤ 64 px a maximum. A length token with no bounds is any non-negative length. #rrggbb only means a plain six-digit colour (the progression-graph colours, whose hues the validator compares). For a choice, the Bounds column lists the words; the first is the default.
The file tokens.css
A file holds one :root block and up to two @media (max-width: <n>px) blocks for narrow windows, each holding one :root block:
:root { --pv-bg: #0b0a0d; --pv-accent: #ff5c93; }
@media (max-width: 1100px) { :root { --pv-art-w: 92px; } }
- Nothing else: no other selector, property, at-rule (
@import,@font-face), nesting orurl(). Comments/* … */are allowed. - At most 64 KiB per file, 200 declarations in all and 600 characters per value. A
@mediawidth is from 320 to 4000 px, and a file has at most 2 such blocks. - A token that is not set keeps the game's value. A token set in a
@mediablock is laid over the base block in windows that narrow. Picture tokens (kindimage) belong in the main:rootblock only. - A value uses letters, digits and the characters
#%.,()/-+_'". These words are refused anywhere in a value:url(,expression,@import,javascript,image-set,element(,attr(,env(,calc-size. - A file that is refused removes its theme from the list; the message names the line, the token and the reason (see reading errors).
Base colours
The palette every other colour starts from: page background, plates, lines, the accent and its states, and the scheme of the native controls.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-bg |
color |
— | Page background and the colour gaps and cut-outs show. |
--pv-plate |
color |
— | Surfaces of panels (plate), raised controls, hovered and selected ones. |
--pv-plate-raised |
color |
— | Surfaces of panels (plate), raised controls, hovered and selected ones. |
--pv-plate-hover |
color |
— | Surfaces of panels (plate), raised controls, hovered and selected ones. |
--pv-plate-active |
color |
— | Surfaces of panels (plate), raised controls, hovered and selected ones. |
--pv-plate-active-hover |
color |
— | Surfaces of panels (plate), raised controls, hovered and selected ones. |
--pv-line |
color |
— | Hairlines and the empty part of gauges. |
--pv-track |
color |
— | Hairlines and the empty part of gauges. |
--pv-ink |
color |
— | Text drawn on an accent-coloured surface. |
--pv-accent |
color |
— | The theme's own accent: used unless the player opted in to the map's artwork or a colour of their own (accentSource), and always by a theme with "accent": "fixed". |
--pv-accent-2 |
color |
— | A second accent for secondary marks: a goal pin, a goal that follows the current judgement. |
--pv-color-scheme |
scheme |
— | Whether native controls (scrollbars, inputs) are dark or light. |
--pv-thumb |
color |
— | The raised thumb of a tab bar's or selector's selected tab (with --pv-layout-controls: pill); the hovered plate when unset. The Settings segmented control does not read it: it is drawn with --pv-clip-sm and the accent. |
--pv-switch |
color |
— | The colour of a switch that is on: the shared Settings Switch and, with --pv-layout-controls: pill, hand-written switches; the accent when unset. |
--pv-accent-hover |
color |
— | Accent of a hovered accent-filled control. |
--pv-accent-press |
color |
— | Accent of a pressed accent-filled control. |
--pv-accent-soft |
color |
— | A faint tint of the accent: the fill of a badge, a selection, a highlighted row. |
Text colours
Primary, secondary and tertiary text, and the colours of disabled text, placeholders and links.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-text |
color |
— | Primary, secondary and tertiary text. |
--pv-text-2 |
color |
— | Primary, secondary and tertiary text. |
--pv-text-3 |
color |
— | Primary, secondary and tertiary text. |
--pv-text-disabled |
color |
— | Text of a disabled control. |
--pv-text-placeholder |
color |
— | Text of an empty field (its placeholder). |
--pv-text-link |
color |
— | Text of a link. |
Surfaces
Surface levels (1 resting, 2 raised, 3 hovered, 4 selected, sunken) and the veil behind dialogs. By default they are the --pv-plate* tokens.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-scrim |
color |
— | The veil drawn behind a modal dialog. |
--pv-surface-1 |
color |
— | Surface of level 1: panels and resting plates. |
--pv-surface-2 |
color |
— | Surface of level 2: raised controls and cards. |
--pv-surface-3 |
color |
— | Surface of level 3: a hovered control or row. |
--pv-surface-4 |
color |
— | Surface of level 4: a selected or pressed control or row. |
--pv-surface-sunken |
color |
— | Surface of a recessed area (the inside of a text field). |
State tones
Information, success, warning and error tones, their soft tints and the hover and press states of the error tone.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-ok |
color |
— | Success, warning and error tones. |
--pv-warn |
color |
— | Success, warning and error tones. |
--pv-danger |
color |
— | Success, warning and error tones. |
--pv-info |
color |
— | Information tone. |
--pv-ok-soft |
color |
— | A faint tint of the success tone. |
--pv-warn-soft |
color |
— | A faint tint of the warning tone. |
--pv-danger-soft |
color |
— | A faint tint of the error tone. |
--pv-info-soft |
color |
— | A faint tint of the information tone. |
--pv-danger-hover |
color |
— | Error tone of a hovered destructive control. |
--pv-danger-press |
color |
— | Error tone of a pressed destructive control. |
Results and ranks
Colours of the hit offset on the result screen, of the achievement tiers, of the podium, and how much black darkens the text of tiers and ratings.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-offset-ok |
color |
— | Mean hit offset colours. |
--pv-offset-warn |
color |
— | Mean hit offset colours. |
--pv-offset-high |
color |
— | Mean hit offset colours. |
--pv-offset-bad |
color |
— | Mean hit offset colours. |
--pv-tier-platinum |
color |
— | Achievement tiers above gold (bronze, silver and gold are the podium colours). |
--pv-tier-diamond |
color |
— | Achievement tiers above gold (bronze, silver and gold are the podium colours). |
--pv-tier-prism |
color |
— | Achievement tiers above gold (bronze, silver and gold are the podium colours). |
--pv-tier-prism-b |
color |
— | Achievement tiers above gold (bronze, silver and gold are the podium colours). |
--pv-tier-prism-c |
color |
— | Achievement tiers above gold (bronze, silver and gold are the podium colours). |
--pv-gold |
color |
— | Podium ranks. |
--pv-silver |
color |
— | Podium ranks. |
--pv-bronze |
color |
— | Podium ranks. |
--pv-tier-dark |
opacity |
— | How much black is mixed into the colour of judgement tier TEXT (0 to 1; 0 keeps the game colours). Light themes raise it so the tier names stay readable; the colour swatches and the colour of the tier in the data are never touched. |
--pv-rating-dark |
opacity |
— | How much black is mixed into the colour of rating TEXT (difficulty and skill values, 0 to 1; 0 keeps the game colours, ratingColor itself is never touched). Light themes raise it so the numbers stay readable. |
Typography
Type scale, line heights, letter spacing, font stacks, weights and text case.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-display-ls |
length |
negative allowed | Letter spacing of display text, labels, titles and big numerals. |
--pv-label-ls |
length |
negative allowed | Letter spacing of display text, labels, titles and big numerals. |
--pv-title-ls |
length |
negative allowed | Letter spacing of display text, labels, titles and big numerals. |
--pv-hero-ls |
length |
negative allowed | Letter spacing of display text, labels, titles and big numerals. |
--pv-fs-xs |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-sm |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-md |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-lg |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-xl |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-2xl |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-3xl |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-hero |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-meta |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-accuracy |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-title |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-fs-rating |
length |
≥ 12 px | Type scale; every size is at least 12px. |
--pv-font-display |
font |
— | Font stacks: display text, body, numerals, labels, technical details (PrismLegacy is the game font). |
--pv-font-body |
font |
— | Font stacks: display text, body, numerals, labels, technical details (PrismLegacy is the game font). |
--pv-font-num |
font |
— | Font stacks: display text, body, numerals, labels, technical details (PrismLegacy is the game font). |
--pv-font-label |
font |
— | Font stacks: display text, body, numerals, labels, technical details (PrismLegacy is the game font). |
--pv-font-mono |
font |
— | Font stacks: display text, body, numerals, labels, technical details (PrismLegacy is the game font). |
--pv-fw-display |
weight |
— | Font weights. |
--pv-fw-num |
weight |
— | Font weights. |
--pv-fw-label |
weight |
— | Font weights. |
--pv-display-case |
case |
— | Text transform of display text and labels. |
--pv-label-case |
case |
— | Text transform of display text and labels. |
--pv-fs-2xs |
length |
≥ 12 px | Smallest size of the type scale. |
--pv-fs-4xl |
length |
≥ 12 px | Largest size of the type scale. |
--pv-lh-tight |
ratio |
0.8–3 | Line height of big titles and numerals. |
--pv-lh-snug |
ratio |
0.8–3 | Line height of labels and compact text. |
--pv-lh-normal |
ratio |
0.8–3 | Line height of running text. |
--pv-lh-loose |
ratio |
0.8–3 | Line height of long paragraphs. |
--pv-ls-tight |
length |
negative allowed | Tight letter spacing (large type). |
--pv-ls-normal |
length |
negative allowed | Normal letter spacing. |
--pv-ls-wide |
length |
negative allowed | Wide letter spacing (small capitals). |
--pv-fw-regular |
weight |
— | Regular weight. |
--pv-fw-medium |
weight |
— | Medium weight. |
--pv-fw-semibold |
weight |
— | Semibold weight. |
--pv-fw-bold |
weight |
— | Bold weight. |
--pv-fw-body |
weight |
— | Weight of running text. |
Spacing and sizes
The spacing scale, gutters, control heights, the song-list heights and gaps, the drawer widths and the page margins.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-h-sm |
length |
— | Control heights. |
--pv-h-md |
length |
— | Control heights. |
--pv-h-lg |
length |
— | Control heights. |
--pv-set-row |
length |
8–400 px | Song list heights: a set card and a difficulty row (reported to the list model). |
--pv-set-gap |
length |
0–100 px | Song list gaps: below a set card and below a difficulty row (reported to the list model with the heights). |
--pv-diff-row |
length |
8–400 px | Song list heights: a set card and a difficulty row (reported to the list model). |
--pv-diff-gap |
length |
0–100 px | Song list gaps: below a set card and below a difficulty row (reported to the list model with the heights). |
--pv-set-grid-w |
length |
0–600 px | A grid of set cards instead of a list: the least width of a card (0, the default, keeps the list). The list lays out as many columns as fit, from 1 to 6, each card as wide as its share; the expanded set's difficulties stay full-width rows under its row of cards. |
--pv-set-grid-aspect |
ratio |
0.3–3 | With a grid (--pv-set-grid-w above 0): the height of a card over its width (1 is a square sleeve). The card's height replaces --pv-set-row. |
--pv-rail-w |
length |
40–600 px | Width of the collapsed (icon rail) and expanded Escape drawer. |
--pv-drawer-w |
length |
40–600 px | Width of the collapsed (icon rail) and expanded Escape drawer. |
--pv-page-pad |
length |
0–160 px | The gutter between the window's edge and the menus, at both sides (the default leaves 40px; a theme that wants the screen to fill the window sets a small one). |
--pv-page-max |
length |
800–8000 px | The widest the menus grow: a window wider than this leaves its extra room as margins (the default is 1800px; a theme that fills any window sets a large one). |
--pv-page-scrim |
color |
— | The veil laid over the map picture behind every page except the song selection (Download, Multiplayer, Profile, Clan, Skins, Mods, Help, a score's analysis), under the page's titles and tabs: a very bright picture then never reaches their text. Defaults to the page background colour at 78% (at most 90%: the picture stays visible); the song selection keeps --pv-shade alone. |
--pv-page-art-blur |
length |
0–40 px | How much the map picture is blurred behind --pv-page-scrim on every page except the song selection (0 keeps it sharp). |
--pv-s0 |
length |
0–400 px | Spacing step 0 (none). |
--pv-s1 |
length |
0–400 px | Spacing step 1. |
--pv-s2 |
length |
0–400 px | Spacing step 2. |
--pv-s3 |
length |
0–400 px | Spacing step 3. |
--pv-s4 |
length |
0–400 px | Spacing step 4. |
--pv-s5 |
length |
0–400 px | Spacing step 5. |
--pv-s6 |
length |
0–400 px | Spacing step 6. |
--pv-s7 |
length |
0–400 px | Spacing step 7. |
--pv-s8 |
length |
0–400 px | Spacing step 8. |
--pv-s9 |
length |
0–400 px | Spacing step 9. |
--pv-s10 |
length |
0–400 px | Spacing step 10. |
--pv-gap-sm |
length |
0–400 px | Small gap between neighbouring elements. |
--pv-gap-md |
length |
0–400 px | Medium gap. |
--pv-gap-lg |
length |
0–400 px | Large gap between zones. |
--pv-gutter |
length |
0–400 px | Gutter of grids and columns. |
--pv-row-h |
length |
16–200 px | Height of a list row. |
--pv-control-h-sm |
length |
16–200 px | Height of a small control. |
--pv-control-h-md |
length |
16–200 px | Height of a medium control. |
--pv-control-h-lg |
length |
16–200 px | Height of a large control. |
--pv-control-pad-x |
length |
0–400 px | Horizontal padding of a control. |
Radii
Corner radius scale, from extra small to pill.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-radius-input |
length |
≤ 64 px | Accent edge width, gauge height, input corner radius, chart line width and gap between chart bars. |
--pv-radius-panel |
length |
0–40 px | Corner radius of the surfaces that are not plates (the Settings dialog, the message boxes, the miscellaneous cards). |
--pv-radius-xs |
length |
0–1000 px | Extra small corner radius (gauges). |
--pv-radius-sm |
length |
0–1000 px | Small corner radius (badges). |
--pv-radius-md |
length |
0–1000 px | Medium corner radius (buttons, tabs). |
--pv-radius-lg |
length |
0–1000 px | Large corner radius (rows, cards). |
--pv-radius-xl |
length |
0–1000 px | Extra large corner radius (dialogs). |
--pv-radius-pill |
length |
0–1000 px | Fully rounded ends (pills, switches). |
Borders and focus
Border colours, border widths and the keyboard focus ring.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-border |
color |
— | The usual outline of a control or a card. |
--pv-border-strong |
color |
— | A more visible outline (a hovered or active control). |
--pv-border-focus |
color |
— | Outline of the field that has the keyboard focus. |
--pv-bw-1 |
length |
0–16 px | Thin border width. |
--pv-bw-2 |
length |
0–16 px | Medium border width. |
--pv-bw-3 |
length |
0–16 px | Thick border width. |
--pv-focus-ring-w |
length |
0–16 px | Width of the keyboard focus ring. |
--pv-focus-ring-offset |
length |
−16–16 px | Gap between an element and its focus ring (negative draws it inside). |
--pv-focus-ring-color |
color |
— | Colour of the keyboard focus ring. |
Plate shapes
The cut-out shapes of plates, their accent edge, gauges and chart bars, and the depth and sheen painted on every plate.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-clip-lg |
clip |
— | Shape of large (rows, panels), medium (buttons, tabs) and small (badges) plates. |
--pv-clip-md |
clip |
— | Shape of large (rows, panels), medium (buttons, tabs) and small (badges) plates. |
--pv-clip-sm |
clip |
— | Shape of large (rows, panels), medium (buttons, tabs) and small (badges) plates. |
--pv-clip-edge-lg |
clip |
— | Shape of the accent edge drawn on the leading side of each plate size. |
--pv-clip-edge-md |
clip |
— | Shape of the accent edge drawn on the leading side of each plate size. |
--pv-clip-edge-sm |
clip |
— | Shape of the accent edge drawn on the leading side of each plate size. |
--pv-clip-meter |
clip |
— | Shape of gauge fills and of chart bars. |
--pv-inset-lg |
length |
— | Horizontal padding that clears the slanted or chamfered ends of each plate size. |
--pv-inset-md |
length |
— | Horizontal padding that clears the slanted or chamfered ends of each plate size. |
--pv-inset-sm |
length |
— | Horizontal padding that clears the slanted or chamfered ends of each plate size. |
--pv-edge-w |
length |
≤ 64 px | Accent edge width, gauge height, input corner radius, chart line width and gap between chart bars. |
--pv-meter-h |
length |
≤ 64 px | Accent edge width, gauge height, input corner radius, chart line width and gap between chart bars. |
--pv-meter-ticks |
layers |
— | Gradient layers: gauge segment ticks, artwork fade mask of a song row (opaque keeps the picture, transparent hides it), the chart scanline overlay and the shade over the map picture. |
--pv-plate-filter |
filter |
— | Depth under every plate (cards, rows, panels): drop-shadow(<x> <y> [<blur>] <colour>) (drawn by a filter because plates are clipped shapes, so a box-shadow would be cut); none for flat. |
--pv-plate-sheen |
layers |
— | Up to four linear gradients painted on top of every plate's colour (a bevel, a keycap's shading, a glass highlight): none for a flat plate. |
Shadows
Resting shadows of each surface level, shadows of floating layers and glows.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-elev-0 |
shadow |
— | Shadow of a surface of level 0 (flat on the page). |
--pv-elev-1 |
shadow |
— | Resting shadow of a surface of level 1. |
--pv-elev-2 |
shadow |
— | Resting shadow of a surface of level 2. |
--pv-elev-3 |
shadow |
— | Resting shadow of a surface of level 3. |
--pv-elev-4 |
shadow |
— | Resting shadow of a surface of level 4. |
--pv-shadow-1 |
shadow |
— | Shadow of a popover or a tooltip. |
--pv-shadow-2 |
shadow |
— | Shadow of a menu. |
--pv-shadow-3 |
shadow |
— | Shadow of a dialog. |
--pv-shadow-4 |
shadow |
— | Shadow of a toast or the highest layer. |
--pv-glow-accent |
shadow |
— | Glow around an emphasised accent element. |
--pv-glow-danger |
shadow |
— | Glow around an element that signals an error. |
Motion
Durations, easing curves and the intensity of entrance animations. Under prefers-reduced-motion the game cuts durations and travel distances to zero whatever the theme says.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-shift-base |
length |
— | Distance entrance animations travel (zero under reduced motion). |
--pv-ease |
easing |
— | Easing of motion and of its springy variant. |
--pv-ease-spring |
easing |
— | Easing of motion and of its springy variant. |
--pv-dur-1 |
duration |
— | Shortest motion (hover, press). |
--pv-dur-2 |
duration |
— | Usual motion. |
--pv-dur-3 |
duration |
— | Slow motion (panels, entrances). |
--pv-dur-4 |
duration |
— | Cross-fade of the accent tint. |
--pv-stagger-step |
duration |
— | Delay between two elements of a staggered entrance. |
--pv-ease-in |
easing |
— | Easing of something leaving. |
--pv-ease-out |
easing |
— | Easing of something arriving. |
--pv-ease-in-out |
easing |
— | Easing of something that moves and stops. |
--pv-ease-emphasis |
easing |
— | Easing of an emphasised movement (a panel sliding in). |
--pv-motion-intensity |
opacity |
— | How far entrances travel and how staggered they are (0 for none); always none under reduced motion. |
Map picture and overlays
How the map's picture behind the menus is drawn (shade, filter, fade mask, cover pictures) and the pictures a theme adds. See the map picture rule.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-art-clip |
clip |
— | Shape of cover pictures. |
--pv-art-inset |
length |
— | Artwork of a song row (the background of its left part): inset, left offset, width (a share of the card, such as 52%) and the left margin of the text (0 when the text lies over the artwork). |
--pv-art-left |
length |
— | Artwork of a song row (the background of its left part): inset, left offset, width (a share of the card, such as 52%) and the left margin of the text (0 when the text lies over the artwork). |
--pv-art-w |
length |
— | Artwork of a song row (the background of its left part): inset, left offset, width (a share of the card, such as 52%) and the left margin of the text (0 when the text lies over the artwork). |
--pv-art-pad |
length |
— | Artwork of a song row (the background of its left part): inset, left offset, width (a share of the card, such as 52%) and the left margin of the text (0 when the text lies over the artwork). |
--pv-art-opacity |
opacity |
— | Opacity of cover pictures. |
--pv-art-mask |
layers |
— | Gradient layers: gauge segment ticks, artwork fade mask of a song row (opaque keeps the picture, transparent hides it), the chart scanline overlay and the shade over the map picture. |
--pv-shade |
layers |
— | Gradient layers: gauge segment ticks, artwork fade mask of a song row (opaque keeps the picture, transparent hides it), the chart scanline overlay and the shade over the map picture. |
--pv-art-filter |
filter |
— | Filter applied to the map picture behind the menus. |
--pv-overlay-image |
image |
— | A picture of the theme's folder drawn over the map artwork and under the menus (a vignette, a grid, decoration), stretched to the window (the picture's own preserveAspectRatio decides whether it is cropped or distorted): image("images/overlay.svg"). |
--pv-bg-image |
image |
— | Picture of the theme's folder drawn on the page background (image("images/bg.png")). |
Progression graph
Palette, curves, grid and cursor of the replay progression graph. The three curves stay distinguishable: see the curves rule.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-graph-surface |
color |
— | Chart plot background, grid lines, zero line and inspection cursor. |
--pv-graph-grid |
color |
— | Chart plot background, grid lines, zero line and inspection cursor. |
--pv-graph-zero |
color |
— | Chart plot background, grid lines, zero line and inspection cursor. |
--pv-graph-cursor |
color |
— | Chart plot background, grid lines, zero line and inspection cursor. |
--pv-graph-bar-clip |
clip |
— | Shape of gauge fills and of chart bars. |
--pv-graph-line-w |
length |
≤ 64 px | Accent edge width, gauge height, input corner radius, chart line width and gap between chart bars. |
--pv-graph-bar-gap |
length |
≤ 64 px | Accent edge width, gauge height, input corner radius, chart line width and gap between chart bars. |
--pv-graph-scan |
layers |
— | Gradient layers: gauge segment ticks, artwork fade mask of a song row (opaque keeps the picture, transparent hides it), the chart scanline overlay and the shade over the map picture. |
--pv-graph-low |
color |
— | Chart palette, from the quietest to the busiest values (the density timeline climbs low, mid, high, peak; judgement tier colours and difficulty colours are never tokens). |
--pv-graph-mid |
color |
— | Chart palette, from the quietest to the busiest values (the density timeline climbs low, mid, high, peak; judgement tier colours and difficulty colours are never tokens). |
--pv-graph-high |
color |
— | Chart palette, from the quietest to the busiest values (the density timeline climbs low, mid, high, peak; judgement tier colours and difficulty colours are never tokens). |
--pv-graph-peak |
color |
— | Chart palette, from the quietest to the busiest values (the density timeline climbs low, mid, high, peak; judgement tier colours and difficulty colours are never tokens). |
--pv-graph-bar-stroke |
color |
— | Outline of chart bars. |
--pv-graph-progression |
choice |
steps (default) · lines · area · bars |
How the replay progression graph draws its three curves: steps (each sample held until the next, the density as a faint stepped area), lines (straight segments joining the real samples, nothing smoothed), area (the stepped curves filled underneath) or bars (the chart density as bars, combo and accuracy as stepped lines). The player may override it in Settings → Interface. |
--pv-graph-grid-style |
choice |
lines (default) · none · dots · scanlines |
The grid behind the replay graphs: hairlines, nothing, a dot lattice, or fine horizontal scanlines. |
--pv-graph-cursor-shape |
choice |
dashed (default) · solid · band |
The cursor of the replay progression graph: a dashed line, a solid line or a translucent vertical band. |
--pv-graph-marker |
choice |
none (default) · dot · diamond · square |
A marker where the cursor crosses each visible curve of the progression graph. |
--pv-graph-miss-style |
choice |
bands (default) · ticks |
How the miss intervals of the progression graph are drawn: translucent bands over the full height, or small ticks along the bottom. |
--pv-graph-curve-w |
length |
1–6 px | Stroke width of the progression graph's combo curve (the accuracy curve is three quarters of it, the density outline six tenths). |
--pv-graph-fill-opacity |
opacity |
— | Opacity of the fills under the progression curves (area and bars, and the faint density area of steps). |
--pv-graph-combo |
color |
#rrggbb only |
The combo curve (solid). #rrggbb. The combo, accuracy and density colours must differ pairwise by at least 30 degrees of hue (greys: 25 % of lightness), or the theme is refused. |
--pv-graph-accuracy |
color |
#rrggbb only |
The accuracy curve (always dashed, whatever the theme). #rrggbb; see the hue rule of the combo curve. |
--pv-graph-density-low |
color |
#rrggbb only |
Chart density, quietest part of its magnitude gradient (#rrggbb). |
--pv-graph-density-mid |
color |
#rrggbb only |
Chart density, middle of its gradient (#rrggbb); this is the colour compared with the combo and accuracy curves. |
--pv-graph-density-high |
color |
#rrggbb only |
Chart density, busiest part of its gradient (#rrggbb). |
Layout choices
A layout token takes one word of a closed list. The page turns each valid word into a data-layout-<name> attribute on the root, and the game's stylesheets react to it. A theme gives no selector and no CSS, only these words. The first word of each list is the layout the game has today, and the value of a token a theme does not set.
| Token | Words | Effect |
|---|---|---|
--pv-layout-list |
right (default) · left · center |
Where the song list stands on the song-select screen. right is the usual layout (the selected map's panel on the left); left mirrors it; center puts the list in the middle with the panel on the right and the art showing on the left. |
--pv-layout-tabs |
top (default) · rail · dock · sidebar |
Where the tabs of the selected map (Info, Leaderboard, Mods, Training, Editor) stand: a bar top, a vertical rail at the panel's left, a dock along the bottom of the panel, or a full-height sidebar (a source list down the left of the whole panel, collapsing to icons in narrow windows). |
--pv-layout-play |
bottom (default) · top |
Where the rating and judgement choices and the Play button of the selected map stand: at the bottom of its panel or at the top, above the title. |
--pv-layout-density |
comfortable (default) · compact · dense |
How tight the menus are: spacing, song-list row heights and gaps shrink step by step. |
--pv-layout-chrome |
none (default) · titlebar · nav |
A decorative bar above the menus: titlebar draws a strip with three round window dots and the app name, nav a slim translucent site-style navigation bar with the app name and the page title (purely cosmetic; the real window controls are the system's). |
--pv-layout-drawer |
left (default) · right · bottom |
Which edge the Escape drawer comes from: left, right, or a bottom dock of icons. |
--pv-layout-rows |
cover (default) · strip · text · list |
How a song-list row is built: the cover artwork as the background of the left part of the row, the text over it, the artwork as a faded strip behind the whole row, text only (a table-like row), or a flat list row (the artwork over the left part and the text on no plate, only a tint under the hovered and the selected row, like a music app's list). |
--pv-layout-profile |
top (default) · rail |
Where the player's identity (name, rating, rank) stands on the Profile page: a bar on top, or a rail down the left. |
--pv-layout-cards |
rich (default) · compact |
How a score card of the leaderboard is built: rich (big accuracy, judgement counts underneath) or compact (one table-like line). |
--pv-layout-buttons |
plate (default) · bracket · link |
How buttons, tabs and icon buttons are drawn: a filled plate in the theme's shape, plain text links in the accent colour for every button but the primary one (which keeps its accent fill), or a bracket (an outline of corner brackets drawn with gradients, no fill, like a terminal's [ ]); the accent-filled ones keep their accent as the colour of the brackets and of their text. |
--pv-layout-focus |
ring (default) · blink |
How keyboard focus shows: the usual outline ring, or the same outline blinking like a text cursor (blink; still, as a ring, under reduced motion). |
--pv-layout-icons |
none (default) · icon |
Whether tabs carry their icon (icon) before the label; the Info, Leaderboard, Mods, Training and Editor tabs have one. |
--pv-layout-visualize |
label (default) · icon |
How the Visualize button of the song list's bar is drawn: with its word (label), or as its eye icon alone (icon: the same square as the bar's other icon buttons, its name and tooltip still say Visualize). |
--pv-layout-groups |
plain (default) · inset |
How the rows of Settings are grouped: plain rules between sections, or inset cards (a rounded group per section with hairline separators between its rows, as in a system settings window). |
--pv-layout-controls |
plain (default) · pill |
The look of tab bars, hand-written switches, popup menus and scrollbars: plain (the theme's own shapes) or pill (capsule tab bars with a raised selected tab, pill switches with a white knob, rounded popup menus with an accent-filled selection, thin overlay scrollbars). The shared Settings controls (Switch, Slider, Segmented, NumberBox, KeyCap, pv-field) do not follow it: they are drawn with the shape tokens (--pv-clip-sm, --pv-clip-meter). |
--pv-layout-hero |
plate (default) · open |
How the selected map's header and its four figures are drawn: on plates, or open on the page itself (the title and the big rating without a card, the figures as columns between hairlines, like a product page). |
--pv-layout-settings |
side (default) · top · index · rail |
Where the categories of Settings stand: a side column of tabs at the left (the usual layout), a top strip of tabs above a full-width page, an index (a ruled list at the left, its selected entry marked by an accent bar, no plates), or a framed rail (the list in a panel of its own, its selected entry a plate). |
--pv-layout-settings-rows |
inline (default) · stacked |
How a setting's row is built: its name with its control on the same line (inline, the usual one), or the control set under the name (stacked, a page of text with each control beneath its label, like a printed form). |
--pv-layout-pause |
panel (default) · side · open · prompt |
How the in-game pause menu is laid out: a panel plate in the middle of the screen, a full-height side panel on the edge the drawer comes from, an open list without plate over the play, or a prompt (a terminal at the left, [ title ], $ and > before the lines). The menu keeps its theme roles, shapes and faces in every layout; side and prompt ignore the position a skin gave the menu. |
Component tokens
Tokens read by one component of the design system, named --pv-<component>-<role>[-<state>]. Their defaults are references to the base tokens (--pv-card-bg follows --pv-surface-2), so a theme that sets only the base tokens already styles every component.
Card
Colours, outline, padding and shadow of cards.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-card-bg |
color |
— | Card: background |
--pv-card-bg-hover |
color |
— | Card: hovered background |
--pv-card-fg |
color |
— | Card: text |
--pv-card-border |
color |
— | Card: outline |
--pv-card-border-w |
length |
0–400 px | Card: outline width |
--pv-card-radius |
length |
0–400 px | Card: corner radius |
--pv-card-pad |
length |
0–400 px | Card: inner padding |
--pv-card-gap |
length |
0–400 px | Card: gap between its elements |
--pv-card-shadow |
shadow |
— | Card: shadow |
Button
Colours of the plain, primary and destructive buttons, and their size, radius and text.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-button-bg |
color |
— | Button: background |
--pv-button-bg-hover |
color |
— | Button: hovered background |
--pv-button-bg-press |
color |
— | Button: pressed background |
--pv-button-fg |
color |
— | Button: text |
--pv-button-border |
color |
— | Button: outline |
--pv-button-primary-bg |
color |
— | Button: background of the primary button |
--pv-button-primary-bg-hover |
color |
— | Button: hovered background of the primary button |
--pv-button-primary-bg-press |
color |
— | Button: pressed background of the primary button |
--pv-button-primary-fg |
color |
— | Button: text of the primary button |
--pv-button-danger-bg |
color |
— | Button: background of a destructive button |
--pv-button-danger-bg-hover |
color |
— | Button: hovered background of a destructive button |
--pv-button-danger-fg |
color |
— | Button: text of a destructive button |
--pv-button-h |
length |
0–400 px | Button: height |
--pv-button-pad-x |
length |
0–400 px | Button: horizontal padding |
--pv-button-radius |
length |
0–400 px | Button: corner radius |
--pv-button-border-w |
length |
0–400 px | Button: outline width |
--pv-button-fs |
length |
≥ 12 px | Button: text size |
--pv-button-fw |
weight |
— | Button: text weight |
--pv-button-disabled-opacity |
opacity |
— | Button: opacity when disabled |
Text field
Colours, outline and size of text fields.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-input-bg |
color |
— | Text field: background |
--pv-input-fg |
color |
— | Text field: text |
--pv-input-border |
color |
— | Text field: outline |
--pv-input-border-hover |
color |
— | Text field: hovered outline |
--pv-input-border-focus |
color |
— | Text field: outline with the keyboard focus |
--pv-input-placeholder |
color |
— | Text field: text of the placeholder |
--pv-input-h |
length |
0–400 px | Text field: height |
--pv-input-pad-x |
length |
0–400 px | Text field: horizontal padding |
--pv-input-radius |
length |
0–400 px | Text field: corner radius |
--pv-input-border-w |
length |
0–400 px | Text field: outline width |
Tab
Colours, size and selected-tab mark of tabs.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-tab-fg |
color |
— | Tab: text |
--pv-tab-fg-hover |
color |
— | Tab: hovered text |
--pv-tab-fg-active |
color |
— | Tab: text of the selected tab |
--pv-tab-bg |
color |
— | Tab: background |
--pv-tab-bg-hover |
color |
— | Tab: hovered background |
--pv-tab-bg-active |
color |
— | Tab: background of the selected tab |
--pv-tab-indicator |
color |
— | Tab: mark of the selected tab |
--pv-tab-h |
length |
0–400 px | Tab: height |
--pv-tab-pad-x |
length |
0–400 px | Tab: horizontal padding |
--pv-tab-radius |
length |
0–400 px | Tab: corner radius |
--pv-tab-indicator-w |
length |
0–400 px | Tab: thickness of the selected-tab mark |
--pv-tab-gap |
length |
0–400 px | Tab: gap between tabs |
Tooltip
Colours, size and shadow of tooltips.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-tooltip-bg |
color |
— | Tooltip: background |
--pv-tooltip-fg |
color |
— | Tooltip: text |
--pv-tooltip-border |
color |
— | Tooltip: outline |
--pv-tooltip-radius |
length |
0–400 px | Tooltip: corner radius |
--pv-tooltip-pad-x |
length |
0–400 px | Tooltip: horizontal padding |
--pv-tooltip-pad-y |
length |
0–400 px | Tooltip: vertical padding |
--pv-tooltip-max-w |
length |
0–400 px | Tooltip: largest width |
--pv-tooltip-fs |
length |
≥ 12 px | Tooltip: text size |
--pv-tooltip-shadow |
shadow |
— | Tooltip: shadow |
List row
Colours, size and selected-row mark of list rows.
| Token | Kind | Bounds | Description |
|---|---|---|---|
--pv-list-row-bg |
color |
— | List row: background |
--pv-list-row-bg-hover |
color |
— | List row: hovered background |
--pv-list-row-bg-selected |
color |
— | List row: background of the selected row |
--pv-list-row-bg-selected-hover |
color |
— | List row: background of the selected row under the pointer |
--pv-list-row-fg |
color |
— | List row: text |
--pv-list-row-fg-muted |
color |
— | List row: secondary text |
--pv-list-row-border |
color |
— | List row: outline |
--pv-list-row-accent |
color |
— | List row: accent mark of the selected row |
--pv-list-row-h |
length |
0–400 px | List row: height |
--pv-list-row-pad-x |
length |
0–400 px | List row: horizontal padding |
--pv-list-row-radius |
length |
0–400 px | List row: corner radius |
--pv-list-row-gap |
length |
0–400 px | List row: gap between its elements |
Rules that cross several tokens
Two checks look at several tokens together. A theme that breaks one is refused as a whole, and the message names the tokens.
The map picture stays visible
The picture of the selected map behind the menus is part of the game's identity. A theme may tint it (--pv-shade), dim, blur, desaturate or recolour it (--pv-art-filter), never remove it or bury it. The validator (crates/themes/src/artwork.rs) estimates the share of the picture's light that reaches the screen, as a mean over the window:
- each gradient of
--pv-shadecovers the mean of its alpha along its axis (stops with%positions are integrated; a repeating gradient, or a stop without a%position, counts as the plain mean of its stops). A colour the estimate cannot read (avar(), a named colour) counts as opaque; - the layers compose: coverage = 1 − Π(1 − layer coverage);
- the filter counts for its
brightness()andopacity()factors (each at most 1); - visible share = filter × (1 − coverage).
The rules:
- the visible share is at least 20 %;
- no single layer of
--pv-shadecovers more than 90 % on average (a flat opaque layer is refused); - in
--pv-art-filter,brightness()is at least 0.25,opacity()at least 0.4 andcontrast()at least 0.5, each on its own.
The check runs on the base block and again on each @media block laid over it. The message reads the map picture must stay visible: --pv-shade and --pv-art-filter leave 12% of it on average; at least 20% is required (a theme may tint, dim or blur it, never hide it). The only way to hide the picture is the player's own option.
The progression curves stay distinguishable
The replay progression graph draws three curves: the combo (always solid), the accuracy (always dashed) and the density (always a filled area or bars). A theme may recolour them with --pv-graph-combo, --pv-graph-accuracy, --pv-graph-density-mid, written as plain #rrggbb, but the colours of every pair must stay apart:
- at least 30° of hue apart (the shortest way round the circle), or
- at least 0.25 of lightness apart, when either colour is a grey (saturation under 0.18).
A colour the theme does not set is the game's own (combo #69b6ff, accuracy #c6a4ff, density #ffc968). A theme that breaks the rule is refused with <token> and <token>: the combo and accuracy curves of the progression graph must differ by at least 30 degrees of hue (or 0.25 of lightness for greys). The colours of judgement tiers and difficulty ratings are never tokens.
See also
Concepts explains how tokens, styles and templates fit together; theme.css shows how a rule of your own sets a token for one subtree of the screen.