Theme reference
This is the complete format of theme.json. The tables are made from the published JSON Schema when the
site is built, so they list every key the deck reads; the text between them explains how the keys work together. To make a theme
from scratch start with a theme in five minutes, and to see keys at work look at the
cookbook.
How a theme file is read
Every value is optional and absent means off for the newer keys, or the default theme’s value for the original ones.
- Merging. A value you leave out comes from
default-dark. Some groups are never taken from it, because a theme that does not mention them should not get them:colors.ramp,colors.cardTints,colors.backgroundPalette,pattern,background,icons,meta, every card chrome value (shape, fill gradient, border style, dashes, gradient and animation, highlight, sheen, accent strip, corner marks, shadow, glow, tint, compact),typography.valueFillandvalueGlow, and every gauge value exceptstyle. The rest merge key by key. - An invalid value is replaced by the default (for an optional value, by “absent”) and one warning in
urdeck.lognames the theme, the key and the value. A number outside its range, a colour that does not parse, a name that is not listed, a value of the wrong kind and a list with a bad item are all invalid. A bad item drops the whole list, except incard.cutCornersandcard.cornerMarks.corners, where an unknown name is dropped and the others stay. Names are read in any case. A file that is not valid JSON makes the theme unavailable. - Units. Sizes are fractions of one grid cell (a quarter of the screen’s width), angles are degrees (0 is left to right,
clockwise), times are seconds, tracking is in em, and colours are
#RRGGBBor#AARRGGBB, alpha first. - Unknown keys are allowed and ignored, so a theme with a key this deck does not read still loads.
urdeck-cli theme validatewarns about the key (THEME002) and suggests the nearest one when you misspell it.
Rules between values are checked after each value on its own, and each warns once and changes only what it names:
- A
card.borderStyle,borderGradientorborderAnimatewith a border width of 0 has no effect (THEME050). card.borderAnimatewithmodespinneeds aborderGradientof kindconic; without one the animation is off (THEME051).card.borderAnimateon adashedborder is not drawn (THEME057): the deck moves the border as a ring stretched round the card, which a dash pattern fitted to each side does not survive. The border stays still.- A
pattern.spacingunder three timespattern.thicknessmakes the marks run together (THEME052). - Corner marks with an
insetbelow 0 reach outside the card; with acard.gapsmaller than that they would overlap the next card (THEME053). card.shapechamferwithcard.compact.shapecircleis allowed; the circle applies to compact cards only.- More than one continuous animation is allowed and written to the log at information level (
THEME090).
The file
| Key | Value | Default | Meaning |
|---|---|---|---|
$schema | text | This schema's URL, for editor completion. Ignored. |
meta
Descriptive data for an editor. It never affects what the deck draws.
| Key | Value | Default | Meaning |
|---|---|---|---|
meta.name | text | Display name for the editor. | |
meta.description | text | A sentence about the theme, for an editor's list. | |
meta.author | text | Who made the theme. | |
meta.license | text | The licence of the theme's files, for example MIT or CC-BY-4.0. | |
meta.version | text | The theme's own version, as text. | |
meta.mode | dark, light | Lets the editor group themes and pick a matching default. | |
meta.tags | list of text | Words that help find the theme, such as dark or mono. | |
meta.pairsWith | group | Recommendations for a settings editor. They never decide what the deck shows. | |
meta.pairsWith.backgrounds | list of text | Names of the backgrounds that suit this theme, best first. Built-in or yours; a name that does not exist is skipped. The theme's default background belongs in this list. | |
meta.samples | list of groups | Same shape as a background manifest's samples. | |
meta.samples[].file | text | A picture of the theme: a file inside the theme folder. | |
meta.samples[].caption | text | Text to show with the picture. |
meta describes the theme to an editor and never affects what the deck draws. A theme is listed by an editor only if it has a
name, a description and a mode (THEME080).
colors
The theme's palette.
| Key | Value | Default | Meaning |
|---|---|---|---|
colors.background | colour | "#0f0f1a" | The colour behind everything, and the colour a translucent card is blended over. |
colors.cardFill | colour | "#b31a1a2e" | The fill of a card. An alpha makes it translucent. |
colors.cardBorder | colour | "#00000000" | The colour of a card's border (see card.borderWidth). |
colors.text | colour | "#ffffff" | The colour of values and text. |
colors.textMuted | colour | "#b3ffffff" | The colour of labels and units, and of a reading that is not current. |
colors.accent | colour | "#4a9eff" | The colour of a gauge's fill and of highlights. |
colors.accentDim | colour | "#664a9eff" | Its alpha sets the opacity of a gauge's track, which is drawn in the gauge's own colour. |
colors.good | colour | "#3ddc84" | The colour of a healthy level: the first step of the default ramp and the OK chip. |
colors.warning | colour | "#ffb020" | A gauge's colour once its reading reaches the warning level. |
colors.critical | colour | "#ff5a4d" | A gauge's colour once its reading reaches the critical level. |
colors.backgroundPalette | list of 1 to 4 colours | ["#0f0f1a","#1a2350","#3a2a6e","#24507a"] | One to four #RRGGBB colours the built-in background shaders draw with; fewer than four repeat the last. Without it the palette is made from colors.background mixed towards colors.accent. |
colors.accent2 | colour | A second accent for gradients, markers, redlines and highlights. Default: the accent. | |
colors.ramp | list of 2 to 5 colours | Two to five colours from low to high load. Default: good, warning, critical. Used when gauge.colorBy is ramp, and by icons.tint ramp. | |
colors.cardTints | list of 1 to 8 colours | One to eight fill colours the cards cycle through when card.tint is cycle. | |
colors.ink | colour | The text colour on top of an accent or tint fill. Default: whichever of the text and background colours contrasts more with the fill. |
A gauge draws its fill in colors.accent, or in colors.warning or colors.critical once its reading has reached that level,
and its track in the same colour at the alpha of colors.accentDim. A reading that is not current (stale, pending, unavailable)
uses colors.textMuted for both. The number keeps colors.text, except where it lies over the fill of a vertical bar: there it
is colors.text or colors.background, whichever contrasts more with the fill.
The background palette
The built-in background shaders draw with four colours that come from the theme. colors.backgroundPalette
sets them. It is the one value that is not taken from default-dark: a light theme would get a dark palette. A theme without
it gets a palette made from its own colours instead, colors.background mixed towards colors.accent by 0, 20, 40 and 60 %.
Keep the palette dark and low in contrast unless the theme’s cards are opaque: a bright, busy background under translucent
cards makes their text hard to read. The colors of the background setting in the configuration win over both.
card
The card is what each widget sits on.
The card each widget sits on: its shape, fill, border, light and shadow.
| Key | Value | Default | Meaning |
|---|---|---|---|
card.radius | number, 0 to 1 | 0.08 | Corner radius, a fraction of a cell, limited to half the card's smaller side. 0 gives flat tiles. |
card.borderWidth | number, 0 to 1 | 0 | Border width, a fraction of a cell. 0 draws no border. |
card.gap | number, 0 to 1 | 0.06 | The space between neighbouring cards, a fraction of a cell. |
card.padding | number, 0 to 1 | 0.065 | The space between a card's edge and its content, a fraction of a cell. |
card.shape | round, chamfer | "round" | round is the rounded rectangle of radius; chamfer cuts the corners named in cutCorners with a straight line (Ember). |
card.cut | number, 0 to 0.5 | 0.14 | Chamfer size, a fraction of a cell, limited to half the card's smaller side. |
card.cutCorners | list of names of tl, tr, br, bl | ["tr","bl"] | The corners a chamfer cuts: tl, tr, br, bl. An empty list gives square cards. |
card.fillGradient | group | A linear gradient that replaces colors.cardFill. | |
card.fillGradient.colors | list of 2 to 6 colours | Stops, evenly spaced. | |
card.fillGradient.angle | number, -360 to 360 | 90 | Degrees, 0 = left to right, 90 = top to bottom. |
card.borderStyle | solid, dashed, none | "solid" | solid, dashed (see borderDash) or none. |
card.borderDash | group | The dashes of a dashed border. Absent: a dash of three border widths and a gap of two. A dash is centred on every corner. | |
card.borderDash.on | number, 0.002 to 1 | Length of a dash, a fraction of a cell. | |
card.borderDash.off | number, 0.002 to 1 | Length of a gap, a fraction of a cell. | |
card.borderGradient | group | Colours the border with a gradient, solid or dashed (Rigline, Ember). | |
card.borderGradient.colors | list of 2 to 8 colours | The stops, evenly spaced. | |
card.borderGradient.kind | linear, conic | "linear" | linear runs across the card at angle; conic goes once round the card from the right, which is what lets it spin. |
card.borderGradient.angle | number, -360 to 360 | 135 | Direction of a linear gradient in degrees: 0 left to right, 90 top to bottom. |
card.borderAnimate | group | Moves the border. It moves only at the motion level full, and never on a dashed border or one without a width. | |
card.borderAnimate.mode | none, spin, pulse | "none" | spin turns a conic borderGradient once round the card; pulse breathes the border's opacity; none leaves it still. |
card.borderAnimate.period | number, 1 to 120 | 7 | Seconds for one cycle. |
card.cornerMarks | group | Registration marks at the corners, on the card or outside it (Carbon, Blueprint). | |
card.cornerMarks.style | none, bracket, tick | "none" | bracket draws an L at each corner, tick one arm along the top or bottom edge, none draws no marks. |
card.cornerMarks.corners | list of names of tl, tr, br, bl | The corners that get a mark: tl, tr, br, bl. Default: tl and br. | |
card.cornerMarks.size | number, 0.01 to 0.5 | 0.08 | Length of each arm, a fraction of a cell. |
card.cornerMarks.thickness | number, 0.002 to 0.1 | 0.01 | Line width, a fraction of a cell. |
card.cornerMarks.inset | number, -0.1 to 0.1 | 0 | Distance from the card's edge to the mark's outer edge, a fraction of a cell. Negative puts the mark outside the card. |
card.cornerMarks.color | colour | The marks' colour. Default: the accent. | |
card.shadow | group | A drop shadow under each card, soft or a hard offset. It is drawn under all the cards, never over a neighbour. | |
card.shadow.x | number, -0.5 to 0.5 | 0 | Horizontal offset, a fraction of a cell. |
card.shadow.y | number, -0.5 to 0.5 | 0 | Vertical offset, a fraction of a cell. |
card.shadow.blur | number, 0 to 1 | Blur, a fraction of a cell. 0 or absent gives a hard edge (Pop). | |
card.shadow.spread | number, -0.5 to 0.5 | 0 | How far the shadow grows beyond the card on every side, a fraction of a cell. Negative shrinks it. |
card.shadow.color | colour | The shadow's colour. Default: black at 40 % opacity. | |
card.glow | group | A glow round each card, blurred outwards from its shape (Rigline). Without blur it draws nothing. | |
card.glow.blur | number, 0 to 1 | Blur radius, fraction of a cell. | |
card.glow.color | colour | The glow's colour. Default: the colour of the thing it glows round. | |
card.glow.alpha | number, 0 to 1 | 0.6 | Strength. |
card.highlight | group | A line of light just inside the top or bottom edge of the card (Prism). | |
card.highlight.top | colour | Colour of the specular line along the top edge. | |
card.highlight.bottom | colour | Colour of the rim light along the bottom edge, inside the card. | |
card.highlight.thickness | number, 0.001 to 0.1 | 0.01 | Line width, a fraction of a cell. |
card.sheen | group | A radial patch of light inside the card, over the fill and under the content (Prism). | |
card.sheen.color | colour | The light's colour, fading to transparent at its edge. Without it there is no sheen. | |
card.sheen.x | number, -1 to 2 | 0.1 | Centre, fraction of card width. |
card.sheen.y | number, -1 to 2 | 0 | Centre, fraction of card height. |
card.sheen.size | number, 0.1 to 3 | 0.7 | Radius, fraction of card width. |
card.accentStrip | group | A lit line along one edge of every card, inside it (Carbon's scan line, Rigline's tile strips). | |
card.accentStrip.side | top, bottom, left, right | "bottom" | The edge the strip runs along: top, bottom, left or right. |
card.accentStrip.thickness | number, 0.005 to 0.2 | 0.03 | Line width, a fraction of a cell. |
card.accentStrip.length | number, 0.1 to 1 | 0.72 | Length of the strip as a fraction of the side it runs along. It is centred on the side. |
card.accentStrip.colors | list of 1 to 8 colours | Strip colours, one to eight, cycled card by card (and slot by slot in the dock). Default: the accent. | |
card.accentStrip.fade | true or false | Fades the strip to transparent along its length (Carbon's scan line). | |
card.accentStrip.glow | group | A blurred copy of the strip laid under it, inside the card. A glow without blur draws nothing. | |
card.accentStrip.glow.blur | number, 0 to 1 | Blur radius, fraction of a cell. | |
card.accentStrip.glow.color | colour | The glow's colour. Default: the colour of the thing it glows round. | |
card.accentStrip.glow.alpha | number, 0 to 1 | 0.6 | Strength. |
card.tint | none, cycle | "none" | cycle fills the cards from colors.cardTints in page order, row by row; none uses the card fill. |
card.compact | group | Overrides for small cards: the dock's slots and page cards of one grid cell. A value left out is the page card's. | |
card.compact.radius | number, 0 to 1 | Corner radius of a compact card, a fraction of a cell, in place of card.radius. | |
card.compact.borderWidth | number, 0 to 1 | Border width of a compact card, a fraction of a cell, in place of card.borderWidth. | |
card.compact.shape | round, chamfer, circle | round, chamfer, or circle, which makes a square card a circle (Obsidian's dock). | |
card.compact.accentStrip | group | A lit strip for compact cards (Rigline's tiles), merged over card.accentStrip key by key. | |
card.compact.accentStrip.side | top, bottom, left, right | "bottom" | The edge the strip runs along: top, bottom, left or right. |
card.compact.accentStrip.thickness | number, 0.005 to 0.2 | 0.03 | Line width, a fraction of a cell. |
card.compact.accentStrip.length | number, 0.1 to 1 | 0.72 | Length of the strip as a fraction of the side it runs along. It is centred on the side. |
card.compact.accentStrip.colors | list of 1 to 8 colours | Strip colours, one to eight, cycled slot by slot. Default: the accent. | |
card.compact.accentStrip.glow | group | A blurred copy of the strip laid under it, inside the card. A glow without blur draws nothing. | |
card.compact.accentStrip.glow.blur | number, 0 to 1 | Blur radius, fraction of a cell. | |
card.compact.accentStrip.glow.color | colour | The glow's colour. Default: the colour of the thing it glows round. | |
card.compact.accentStrip.glow.alpha | number, 0 to 1 | 0.6 | Strength. |
card.compact.cornerMarks | group | Registration marks for compact cards, merged over card.cornerMarks key by key. | |
card.compact.cornerMarks.style | none, bracket, tick | "none" | bracket draws an L at each corner, tick one arm along the top or bottom edge, none draws no marks. |
card.compact.cornerMarks.corners | list of names of tl, tr, br, bl | The corners that get a mark: tl, tr, br, bl. Default: tl and br. | |
card.compact.cornerMarks.size | number, 0.01 to 0.5 | Length of each arm, a fraction of a cell. | |
card.compact.cornerMarks.thickness | number, 0.002 to 0.1 | Line width, a fraction of a cell. | |
card.compact.cornerMarks.inset | number, -0.1 to 0.1 | 0 | Distance from the card's edge to the mark's outer edge, a fraction of a cell. Negative puts the mark outside the card. |
card.compact.cornerMarks.color | colour | The marks' colour. Default: the accent. |
- Shape.
roundis the rounded rectangle ofcard.radius, limited to half the card’s smaller side.chamfercuts the corners named incutCornerswith a straight linecutlong along each side, limited to half the smaller side; the other corners are square andradiusis not used. An emptycutCornersgives square cards. The widget’s content is clipped to the shape. - Fill, the first that applies:
fillGradient(linear across the card at its angle, the colours evenly spaced),tintcyclewithcolors.cardTints,colors.cardFill. WithoutcardTintsa tinted theme uses the card fill. The text colour does not change with the tint. - Tint order. A card takes the tint at its index, counting round the list. The index is its place among its page’s placed, visible cards, row by row and then column by column, from the first tint on every page. A dock slot takes its position in the dock.
- Border, always inside the card’s edge,
card.borderWidthwide:solid,none, ordashedwithborderDash. A dashed border has a dash centred on every corner; on each side the dash and the gap are scaled together so a whole number of them fits.borderGradientcolours the border, solid or dashed:linearat its angle,coniconce round the card’s centre, starting at the right. A border width of 0 draws nothing. - Animated border.
spinturns the conicborderGradientonce round the card everyperiodseconds (7 when absent);pulsebreathes the border’s opacity between full and 0.55 and back, for a solid, linear or conic border. Both move in 15 steps a second over a card that is never repainted for them, at about 3 % of one CPU core for eight cards. The border moves only at the motion levelfull, while the display is on and the deck is shown; otherwise it is the still border, drawn exactly as a border withoutborderAnimate. - Hairlines. In a theme that sets any card value other than the radius, border width, gap and padding, a border of 2 pixels or less is drawn at a whole number of
pixels, never under 1; under one pixel it is written to
urdeck.logonce (THEME055). The highlight, strip and mark thicknesses are hairlines too. - Highlight.
highlight.topandhighlight.bottomdraw a linethicknesswide just inside the top or bottom edge, round the corners with the edge, fading to transparent over the first and last eighth of the card’s width. It is drawn after the widget’s content, so content never covers it. - Sheen. A radial light centred at
xtimes the card’s width andytimes its height, reachingsizetimes the card’s width, fromcolorto transparent; over the fill, under the content. - Accent strip. A line
thicknesswide alongside, inside the card,lengthtimes the side long and centred on it, over the fill and under the content. Its colour is the entry ofcolorsat the card’s index (the same index as the tint).fadefades it from its colour at the start to transparent at the end.glowlays a blurred copy under it. - Corner marks.
bracketdraws an L at each corner incorners, one arm along each edge;tickdraws one arm, along the top or bottom edge. Each arm issizelong from the mark’s outer corner andthicknesswide.insetis the distance from the card’s edge to the mark’s outer edge: positive moves the mark in, negative puts it partly or wholly outside the card (minus half the thickness puts the line across the edge). Marks are drawn after the content, so content never covers them. - Shadow and glow. The shadow is the card’s shape moved by
xandy, grown byspreadon every side, blurred byblur, incolor. The glow blurs the card’s shape outwards byblur. Both, and the outside part of the corner marks, are drawn under all the cards of the page, so they never cover a card’s content, and each card’s own shape is cut out of its own shadow and glow, so a translucent card does not show them through its fill. They take no input, and a pressed card’s shadow shrinks and dims with the card. - Translucent cards. When a card fill colour has some transparency, a neighbour’s shadow would show through the card. The
shadow’s offset and blur, and the glow’s blur, are then scaled down together until they reach no further than
card.gappast the card;urdeck.logsays so once. A theme with opaque cards keeps its full reach (THEME054tells you in advance). - Compact cards. A dock slot and a page card of one grid cell (1x1) are compact; every other card is not. A compact card takes
card.compactin place of the page card’s values, each on its own:radius,borderWidthandshapereplace the page’s, and a valuecompactdoes not set is the page card’s.compact.accentStripandcompact.cornerMarksare merged key by key over the page’s. Acircleis a rounded card of half its smaller side as the radius: a circle on a square card, a capsule on one that is not square (THEME056). The padding is not overridden. A widget in the dock is given a theme with the compact corner radius and border width; a 1x1 widget on a page is given the page’s theme, so only its card is compact.
pattern
One texture over the whole window, above the background and under the cards. It does not slide with the pages.
| Key | Value | Default | Meaning |
|---|---|---|---|
pattern.kind | none, dots, grid, hatch, scanlines | "none" | dots, grid, hatch, scanlines or none. |
pattern.spacing | number, 0.02 to 2 | 0.13 | Distance between marks, a fraction of a cell. |
pattern.majorEvery | whole number, 2 to 20 | Every Nth line of a grid is drawn heavier (Blueprint: 5). | |
pattern.thickness | number, 0.001 to 0.1 | 0.01 | Line width, or a dot's radius, a fraction of a cell. |
pattern.color | colour | The marks' colour. Default: the muted text colour at a sixteenth of its opacity. | |
pattern.major | group | The look of a grid's heavier lines. | |
pattern.major.color | colour | Colour of the heavier lines. Default: the pattern's own. | |
pattern.major.thickness | number, 0.001 to 0.1 | Width of the heavier lines, a fraction of a cell. Default: the pattern's own. | |
pattern.angle | number, -180 to 180 | 45 | Direction of a hatch in degrees from horizontal, rising to the right. |
- Kinds.
dots(round dots of radiusthickness),grid(horizontal and vertical lines; withmajorEvery, everymajorEvery-th line in each direction, starting with the first, takesmajor),hatch(parallel lines,spacingapart across the lines) andscanlines(horizontal lines). The first mark is half a repeat in from the top and left edges. - The angle of a
hatchis in degrees from horizontal, positive rising to the right: 45 (the default) runs from bottom left to top right, 0 or 180 is horizontal and 90 or -90 vertical.angleis used byhatchonly,majorEveryandmajorbygridonly. - Whole pixels. The distance between marks is the spacing in pixels rounded to a whole pixel (at least 2), a line is a whole number of pixels wide (at least 1) and a dot’s radius is at least half a pixel. A hatch’s angle is adjusted by under one degree so its lines meet across every repeat. On the 1100 pixel wide panel Carbon’s dots are 35 pixels apart.
- Where. One texture over the whole window: above the background, its scrim and the theme’s background colour, under every
card, the dock and the page indicator. It does not slide with the pages, takes no input and is drawn whatever the configuration’s
backgroundis,noneincluded, because it belongs to the theme. - Cost. The pattern is drawn once per theme and window size into one small block of whole repeats and laid out as tiles; nothing is repainted while the deck runs.
divider
The rule widgets draw between their sections. A theme with no divider gets the rule the weather card always drew.
The rule widgets draw between their sections, such as the weather card's between now and the forecast.
| Key | Value | Default | Meaning |
|---|---|---|---|
divider.style | none, line, gradient, dimension | "line" | line, gradient, dimension (a line with end ticks and an optional centred label, Blueprint) or none. |
divider.color | colour | The rule's colour. Default: the muted text colour at about a third of its opacity. | |
divider.thickness | number, 0.001 to 0.05 | 0.01 | Line width, a fraction of a cell. |
divider.gradientTo | colour | The colour a gradient rule fades to. |
well
A recessed rounded rectangle behind grouped content, such as each forecast day of the weather card (Rigline). Absent: no well.
| Key | Value | Default | Meaning |
|---|---|---|---|
well.fill | colour | The well's fill colour. | |
well.radius | number, 0 to 0.5 | 0.09 | Corner radius, a fraction of a cell. |
well.border | colour | The well's border colour. |
chip
A pill round short text: a gauge's status word (OK, WARM) and the weather card's condition.
| Key | Value | Default | Meaning |
|---|---|---|---|
chip.shape | none, pill | "none" | pill draws a pill round the text and shrinks it with the text; none draws only the text. |
chip.fill | colour | The pill's fill colour. | |
chip.border | colour | The pill's border colour. | |
chip.textColor | colour | The colour of the text inside the pill. | |
chip.colorBy | none, status | "status" | status tints a gauge's status chip by its level (good, warning, critical); none keeps the chip's own colours. |
typography
Fonts, weights, sizes and the look of values and labels.
| Key | Value | Default | Meaning |
|---|---|---|---|
typography.font | text | "InterVariable.ttf" | The default font for every role: an installed family, or the name of a .ttf or .otf file in the theme folder. |
typography.fonts | group | A font per role. A role without one uses typography.font. | |
typography.fonts.value | text | Font of readout values: a family or a file in the theme folder. | |
typography.fonts.unit | text | Font of readout units: a family or a file in the theme folder. | |
typography.fonts.label | text | Font of readout labels: a family or a file in the theme folder. | |
typography.weights | group | Font weight per role. A variable font takes it through its weight axis; a static font is used as it is. | |
typography.weights.value | number, 1 to 1000 | 600 | Weight of readout values. |
typography.weights.unit | number, 1 to 1000 | 500 | Weight of readout units. |
typography.weights.label | number, 1 to 1000 | 400 | Weight of readout labels. |
typography.weights.body | number, 1 to 1000 | 400 | Weight of body text. |
typography.weights.title | number, 1 to 1000 | 300 | Weight of titles. |
typography.labelSize | number, 0.005 to 1 | 0.091 | Size of labels, a fraction of a cell. |
typography.bodySize | number, 0.005 to 1 | 0.0845 | Size of body text, a fraction of a cell. |
typography.titleSize | number, 0.005 to 1 | 0.11 | Size of titles, a fraction of a cell. |
typography.unitRatio | number, 0.05 to 1 | 0.4 | The size of a readout's unit as a fraction of its value's size. |
typography.valueScale | number, 0.5 to 2 | 1 | Multiplies the size a widget asks of a readout, never beyond the size at which value, unit and label fill their rectangle (Pop and Obsidian run big). |
typography.case | group | Letter case applied when text is drawn. | |
typography.case.label | none, upper, lower | "none" | Case of readout labels and of text lines at the label step: none, upper or lower. |
typography.case.title | none, upper, lower | "none" | Case of text lines at the title step: none, upper or lower. |
typography.tracking | group | Letter spacing in em, added after each character but the last. Equal-width digits stay equal. | |
typography.tracking.value | number, -0.1 to 0.6 | Spacing of readout values, in em. | |
typography.tracking.label | number, -0.1 to 0.6 | Spacing of readout labels and label lines, in em. | |
typography.tracking.title | number, -0.1 to 0.6 | Spacing of title lines, in em. | |
typography.opticalSize | off, auto | "off" | off leaves a font's optical size axis (opsz) where the font puts it; auto sets it for each role: the top of the axis for values and units, the role's pixel size for labels, body and titles. A font without the axis is unaffected. |
typography.slant | number, 0 to 20 | 0 | Leans a readout's value to the right, in degrees. Prefer a real italic file when the family has one. |
typography.valueFill | group | Fills the value text with a gradient (Rigline's clock). | |
typography.valueFill.colors | list of 2 to 6 colours | Gradient stops, two to six, evenly spaced. | |
typography.valueFill.angle | number, -360 to 360 | 0 | Direction in degrees: 0 left to right, 90 top to bottom. |
typography.valueGlow | group | A blurred copy behind the value text. | |
typography.valueGlow.blur | number, 0 to 1 | Blur radius, fraction of a cell. | |
typography.valueGlow.color | colour | The glow's colour. Default: the colour of the thing it glows round. | |
typography.valueGlow.alpha | number, 0 to 1 | 0.6 | Strength. |
- Fonts per role.
fonts.value,fonts.unitandfonts.labelname a family or a file in the theme folder for that role; a role without one, and the body and title, usetypography.font. A role whose font cannot be loaded falls back one step at a time: the role’s font,typography.font, the default theme’s font (Inter), the system font. Each missing font is one warning per loaded theme. A file path that leaves the theme folder is refused. See fonts and licences. - Weights the font cannot make. A weight outside a variable font’s weight axis is drawn at the nearest end of the axis, and a
weight on a single-weight file is drawn at the file’s own weight; each is one warning per role per loaded theme (
THEME023). An installed family is not checked. - Optical size.
offleaves the axis where the font puts it.autosets it for each role whose font has the axis: the top of the axis (the display cut) for values and units, which are drawn large, and the role’s size in pixels, limited to the axis, for labels, body and titles. A Didone such as Bodoni Moda needs it for its hairlines at large sizes. - Case applies to a readout’s label and to a text line at the label step (
case.label) and at the title step (case.title). Body text and values are never recased. - Tracking is added after each character but the last, in em:
valueto a readout’s value (the digits keep their equal widths and the spacing is part of the fit, so the size does not change with the value),labelto labels and label lines,titleto title lines. Body text and units are not spaced. slantleans a readout’s value to the right about its baseline. The top of a slanted value reaches past the rectangle’s right edge by the slant’s tangent times the cap height.valueScalemultiplies the size a widget asks of a readout, and the result is never larger than the size at which the value, unit and label fill the rectangle. Above 1 it enlarges only a readout a widget draws smaller than it could (a gauge’s readout, a clock set below full size); below 1 it shrinks every readout.valueFillfills a readout’s value with the gradient across the value’s box; a stale reading or a colour the widget gives the value replaces the gradient.valueGlowdraws a blurred copy behind the value.
The split-flap clock’s digits, a gauge’s own centre text and an image tile’s letter take the role’s font and optical size, but not the case, spacing, slant, fill or glow.
stroke
How components that draw lines draw them.
| Key | Value | Default | Meaning |
|---|---|---|---|
stroke.thickness | number, 0.001 to 1 | 0.08 | Line thickness as a fraction of the drawn element. |
stroke.cap | round, square | "round" | The ends of a line: round or square. |
gauge
The shape of a gauge and the parts it can have.
| Key | Value | Default | Meaning |
|---|---|---|---|
gauge.style | ring, bar, verticalBar, meter, tach, marker, thickbar | "ring" | The shape a gauge takes when a widget asks for the theme's: ring, bar, verticalBar, meter (a thin bar with ticks and a scale), tach (an arc with ticks, a redline and a needle), marker (a hairline ring or bar with a jewel) or thickbar (a heavy outlined bar). A widget's own style wins. |
gauge.labelPosition | auto, inside, below, above | "auto" | Where a gauge's label sits. auto keeps the default placement (Prism: below). |
gauge.layout | auto, stacked | "auto" | stacked draws a bar with the readout above, left-aligned, and the track at the bottom (Carbon). A meter and a thick bar are stacked by definition; auto keeps the bar's own layout. |
gauge.readoutGap | number, 0 to 4 | 0.5 | The space between a bar's, meter's or thick bar's track and its readout, in thicknesses of the track. |
gauge.sweep | group | The arc a ring, tach or marker gauge covers. | |
gauge.sweep.start | number, -360 to 360 | 135 | Where the arc starts, in degrees: 0 is 3 o'clock, clockwise. The default ring starts at 135. |
gauge.sweep.span | number, 30 to 360 | 270 | How many degrees the arc covers. The default ring covers 270. |
gauge.segments | group | Chops the fill, and the track, into LED-style blocks. | |
gauge.segments.length | number, 0.005 to 1 | Length of a segment: along a bar, a fraction of a cell; round a ring, the arc length in cells. | |
gauge.segments.gap | number, 0 to 1 | The space between segments, in the same unit as the length. | |
gauge.outline | group | An outline round the track (the thick bar). | |
gauge.outline.width | number, 0.002 to 0.2 | Outline width, a fraction of a cell. | |
gauge.outline.color | colour | The outline's colour. | |
gauge.ticks | group | Tick marks on rings, tachs and meters. | |
gauge.ticks.count | whole number, 2 to 60 | How many ticks. A tach with no ticks group has 28; a ticks group that leaves this out has 11. | |
gauge.ticks.majorEvery | whole number, 1 to 20 | Every Nth tick is longer. | |
gauge.ticks.length | number, 0.005 to 0.5 | Tick length, a fraction of a cell. | |
gauge.ticks.thickness | number, 0.001 to 0.05 | Tick width, a fraction of a cell. | |
gauge.ticks.color | colour | The ticks' colour. | |
gauge.ticks.labels | true or false | Prints a number at each major tick, from 0 to 100. | |
gauge.scale | group | Labels printed under a bar (Paper). | |
gauge.scale.labels | list of 2 to 11 text | Two to eleven labels printed under a bar at even spacing, for example ["0", "50", "100"]. | |
gauge.scale.size | number, 0.005 to 0.5 | Size of the labels, a fraction of a cell. | |
gauge.redline | group | A zone at the top of the scale drawn in its own colour (Ember). A tach has one from 0.85 even when the theme sets none. | |
gauge.redline.from | number, 0 to 1 | 0.85 | Where the zone starts, as a fraction of the scale. |
gauge.redline.color | colour | The zone's colour. | |
gauge.redline.glow | group | A soft glow on the zone. | |
gauge.redline.glow.blur | number, 0 to 1 | Blur radius, fraction of a cell. | |
gauge.redline.glow.color | colour | The glow's colour. Default: the colour of the thing it glows round. | |
gauge.redline.glow.alpha | number, 0 to 1 | 0.6 | Strength. |
gauge.redline.lightsAbove | true or false | The zone lights only while the value is inside it (Ember). | |
gauge.gradient | "ramp" or a gradient | "ramp" fills along colors.ramp; or give a gradient's own stops. | |
gauge.glow | group | A glow round the fill. Default colour: the fill's. | |
gauge.glow.blur | number, 0 to 1 | Blur radius, fraction of a cell. | |
gauge.glow.color | colour | The glow's colour. Default: the colour of the thing it glows round. | |
gauge.glow.alpha | number, 0 to 1 | 0.6 | Strength. |
gauge.marker | group | A marker at the value (Obsidian's jewel, Blueprint's needle). | |
gauge.marker.shape | diamond, needle | "diamond" | diamond or needle. |
gauge.marker.size | number, 0.005 to 0.5 | Marker size, a fraction of a cell. | |
gauge.marker.color | colour | The marker's colour. | |
gauge.marker.halo | true or false | Draws a dark ring round the marker. | |
gauge.crosshair | true or false | Draws a cross at the centre of dials (Blueprint). | |
gauge.track | group | Overrides the default track, which is the fill's colour at the alpha of colors.accentDim. | |
gauge.track.color | colour | The track's colour. | |
gauge.track.widthRatio | number, 0.1 to 2 | 1 | Track width relative to stroke.thickness. |
gauge.colorBy | accent, ramp | "accent" | ramp colours the fill by its value along colors.ramp instead of the accent, warning and critical steps. |
gauge.valueTint | true or false | false | Colours the readout with the same colour as the fill. |
gauge.sparkline | group | A history line under the readout, in the fill's colour. Stats keeps the history, one value a second, and draws the line when the card is at least 0.9 of a cell tall. | |
gauge.sparkline.enabled | true or false | Turns the history line on. | |
gauge.sparkline.height | number, 0.05 to 1 | 0.3 | Height of the line, a fraction of a cell. |
gauge.sparkline.historySeconds | number, 10 to 600 | 60 | How many seconds of history the line shows. |
gauge.sparkline.strokeWidth | number, 0.002 to 0.1 | Line width, a fraction of a cell. | |
gauge.status | group | A status chip on the label's row. Stats chooses the word from the gauge's fraction and the thresholds, or from a slot's own warning and critical levels. | |
gauge.status.enabled | true or false | Turns the status chip on. | |
gauge.status.thresholds | list of exactly 2 numbers | Where the status turns warm and hot, as fractions from 0 to 1. Default: 0.7 and 0.9. | |
gauge.status.labels | list of exactly 3 text | The three words, for a healthy, a warm and a hot reading. |
A value that does not apply to the gauge’s style is ignored without a warning. A meter and a thickbar put the readout above
the track, left-aligned, and so does a bar with layout stacked. A tach has ticks (28, every fourth longer) and a redline
from 0.85 even when the theme sets none. A group the theme writes takes defaults for the keys it leaves out: ticks 11 marks,
every fifth longer, 0.04 long and 0.006 thick; redline from 0.85; marker a diamond 0.05 across. Tick numbers run 0 to 100.
labelPosition below and above apply to arcs. The track is cut into blocks like the fill when segments is set.
gauge.style is the shape a gauge takes when a widget asks for “the theme’s”; plain is not allowed here (a gauge that draws no
shape is no gauge), and an unknown name falls back to ring with a warning. A widget’s own explicit style wins.
indicator
The page indicator (see pages and the dock). A theme written before it existed takes all of these
from default-dark, with no warning.
The page indicator: one dot per page, the current one a pill.
| Key | Value | Default | Meaning |
|---|---|---|---|
indicator.bandHeight | number, 0.02 to 1 | 0.25 | Height of the band reserved at the bottom of the screen, fraction of a cell. |
indicator.dotSize | number, 0.005 to 0.5 | 0.05 | Diameter of a dot. |
indicator.pillLength | number, 0.005 to 1 | 0.14 | Length of the current page's pill. |
indicator.spacing | number, 0 to 1 | 0.05 | Space between marks. |
indicator.active | colour | "#ffffff" | Colour of the current page's mark. |
indicator.inactive | colour | "#59ffffff" | Colour of the other marks. |
indicator.backdrop | colour | "#8c0f0f1a" | Colour of the translucent pill behind a floating indicator. |
press
How a card looks while a finger is down on a widget that accepts taps. The whole card, border included, is scaled around its
centre and dimmed by the compositor; the widget is not repainted. scale must be between 0.5 and 1 and opacity between 0.1 and
1; a value outside that is replaced by the default’s with a warning. Set both to 1 to switch the feedback off. How fast the card
moves is not a theme value.
How a card looks while a finger is down on a widget that accepts taps (a shortcut).
| Key | Value | Default | Meaning |
|---|---|---|---|
press.scale | number, 0.5 to 1 | 0.96 | The pressed card's size; 1 leaves it unchanged. |
press.opacity | number, 0.1 to 1 | 0.85 | The pressed card's opacity; 1 leaves it unchanged. |
dock
The dock (see pages and the dock). height is the height of the band reserved for it at the
bottom of the screen, and also the side of a dock slot: the theme’s sizes are applied to a slot as they are to a grid cell, so a
docked card is a miniature whose corners, padding and text shrink with this value. It must be between 0.2 and 1. The built-in
themes use 0.71, which on the 1100x3840 panel fits under the thirteenth row together with the page indicator, so the dock costs
no row there; a larger value takes a row.
The dock at the bottom of the screen.
| Key | Value | Default | Meaning |
|---|---|---|---|
dock.height | number, 0.2 to 1 | 0.71 | Height of the dock's band, which is also the side of a dock slot, fraction of a cell. |
icons
The icon set the weather and shortcut cards draw their glyphs from.
| Key | Value | Default | Meaning |
|---|---|---|---|
icons.set | text | Name of an icon set: a folder icons/<set>/ inside the theme folder (with a manifest.json), or a built-in set (outline). A key the set lacks is answered by outline. | |
icons.stroke | number, 0.005 to 0.2 | Line width of the set's icons, a fraction of the icon's size. | |
icons.tint | text | accent, accent2, text, ramp (the colour of colors.ramp that suits the value shown, such as the temperature), none (the text colour) or a #colour. | |
icons.glow | group | A glow behind the set's icons (Rigline). Its colour defaults to the icon's tint. | |
icons.glow.blur | number, 0 to 1 | Blur radius, fraction of a cell. | |
icons.glow.color | colour | The glow's colour. Default: the colour of the thing it glows round. | |
icons.glow.alpha | number, 0 to 1 | 0.6 | Strength. |
The weather card draws its condition icons from the set, and the shortcut card its theme: glyphs and the fallback glyph for an
icon that cannot be found. A theme that names a set gets static outline icons, drawn in the theme’s stroke and tint, in place of
the animated colour icons. There is no animated key: icons from a set are pictures. How to make a set is on the
icon sets page.
background
What the deck shows behind the cards when the configuration has no background of its own. See
theme backgrounds for the order (the user’s choice, none included, then default,
then static, then colors.background) and for what happens when one fails.
What the deck shows behind the cards when the configuration has no background of its own.
| Key | Value | Default | Meaning |
|---|---|---|---|
background.default | group | The moving background this theme selects. | |
background.default.name | text | A shader background's name: built in, or a folder in backgrounds/. It draws with the theme's palette. | |
background.static | group | A still background, used when there is no default or when the default cannot be shown: an image, a gradient or a colour, the first that is given. It is drawn once. | |
background.static.image | text | A file in the theme folder, scaled to cover the deck. A path that leaves the folder is ignored. | |
background.static.color | colour | A plain colour. | |
background.static.gradient | group | A linear or radial gradient. | |
background.static.gradient.colors | list of 2 to 6 colours | The stops, two to six, evenly spaced. | |
background.static.gradient.kind | linear, radial | "linear" | linear or radial. |
background.static.gradient.angle | number, -360 to 360 | 90 | Direction of a linear gradient in degrees: 0 left to right, 90 top to bottom. |
background.static.gradient.cx | number, -1 to 2 | 0.5 | Centre of a radial gradient across the deck, as a fraction of its width. |
background.static.gradient.cy | number, -1 to 2 | 0 | Centre of a radial gradient down the deck, as a fraction of its height. |
background.static.gradient.radius | number, 0.1 to 3 | 0.7 | Radius of a radial gradient, as a fraction of the deck's width. |
background.scrim | group | A veil between the background and the cards that holds text contrast. It is drawn over a shader, a picture and a still background, not over the plain colour. | |
background.scrim.color | colour | The veil's colour. Its own alpha multiplies alpha. | |
background.scrim.alpha | number, 0 to 1 | The veil's opacity. Without both a colour and an alpha there is no scrim. |
motion
How much the theme may move.
| Key | Value | Default | Meaning |
|---|---|---|---|
motion.level | full, reduced, off | "full" | The ceiling for the theme's own animation (card.borderAnimate). The level that applies is the lower of this and the user's: the configuration's motion, or Windows' animation setting. It does not touch a moving background, which follows the user's level alone. |
At full the theme’s continuous animations run; at reduced and off none does, and each is drawn as it is when still. See
motion.