System

Color

Color in Virtu is a short list of roles, not a palette. Plain has six: two surfaces, two text colors, an accent and an error color, each set for light and dark and checked for contrast.

Roles

Every color in a page comes from one of 6 roles. Each role is a property, such as --virtu-color-role-accent, with a value per theme, and the swatches here follow your theme.
plain, both themes
surface
#f6faff / #161a1e
surface-raised
#d9dee4 / #2b2f33
text
#2b2f33 / #d9dee4
text-muted
#5c6066 / #93989d
error
#b72826 / #ff8c80
accent
#1360b3 / #5299f2

Light and dark

The theme is a context, not a second palette. Set data-theme on any element and the roles inside it switch; Virtu checks text against its surfaces in both.
data-theme on any element
light

Notes from the field

Three walks along the river, and a list of birds by sound.

Read the latest

SaveDiscardCite
dark

Notes from the field

Three walks along the river, and a list of birds by sound.

Read the latest

SaveDiscardCite

Scales

The roles are drawn from 3 generated scales, gray, accent, red, each from light to dark. Pages use the roles; the scales are where a role's value comes from.
gray12 steps
accent12 steps
red12 steps