Documentation

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.valueFill and valueGlow, and every gauge value except style. 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.log names 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 in card.cutCorners and card.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 #RRGGBB or #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 validate warns 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, borderGradient or borderAnimate with a border width of 0 has no effect (THEME050).
  • card.borderAnimate with mode spin needs a borderGradient of kind conic; without one the animation is off (THEME051).
  • card.borderAnimate on a dashed border 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.spacing under three times pattern.thickness makes the marks run together (THEME052).
  • Corner marks with an inset below 0 reach outside the card; with a card.gap smaller than that they would overlap the next card (THEME053).
  • card.shape chamfer with card.compact.shape circle is 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

KeyValueDefaultMeaning
$schematextThis schema's URL, for editor completion. Ignored.

meta

Descriptive data for an editor. It never affects what the deck draws.

KeyValueDefaultMeaning
meta.nametextDisplay name for the editor.
meta.descriptiontextA sentence about the theme, for an editor's list.
meta.authortextWho made the theme.
meta.licensetextThe licence of the theme's files, for example MIT or CC-BY-4.0.
meta.versiontextThe theme's own version, as text.
meta.modedark, lightLets the editor group themes and pick a matching default.
meta.tagslist of textWords that help find the theme, such as dark or mono.
meta.pairsWithgroupRecommendations for a settings editor. They never decide what the deck shows.
meta.pairsWith.backgroundslist of textNames 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.sampleslist of groupsSame shape as a background manifest's samples.
meta.samples[].filetextA picture of the theme: a file inside the theme folder.
meta.samples[].captiontextText 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.

KeyValueDefaultMeaning
colors.backgroundcolour"#0f0f1a"The colour behind everything, and the colour a translucent card is blended over.
colors.cardFillcolour"#b31a1a2e"The fill of a card. An alpha makes it translucent.
colors.cardBordercolour"#00000000"The colour of a card's border (see card.borderWidth).
colors.textcolour"#ffffff"The colour of values and text.
colors.textMutedcolour"#b3ffffff"The colour of labels and units, and of a reading that is not current.
colors.accentcolour"#4a9eff"The colour of a gauge's fill and of highlights.
colors.accentDimcolour"#664a9eff"Its alpha sets the opacity of a gauge's track, which is drawn in the gauge's own colour.
colors.goodcolour"#3ddc84"The colour of a healthy level: the first step of the default ramp and the OK chip.
colors.warningcolour"#ffb020"A gauge's colour once its reading reaches the warning level.
colors.criticalcolour"#ff5a4d"A gauge's colour once its reading reaches the critical level.
colors.backgroundPalettelist 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.accent2colourA second accent for gradients, markers, redlines and highlights. Default: the accent.
colors.ramplist of 2 to 5 coloursTwo to five colours from low to high load. Default: good, warning, critical. Used when gauge.colorBy is ramp, and by icons.tint ramp.
colors.cardTintslist of 1 to 8 coloursOne to eight fill colours the cards cycle through when card.tint is cycle.
colors.inkcolourThe 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.

KeyValueDefaultMeaning
card.radiusnumber, 0 to 10.08Corner radius, a fraction of a cell, limited to half the card's smaller side. 0 gives flat tiles.
card.borderWidthnumber, 0 to 10Border width, a fraction of a cell. 0 draws no border.
card.gapnumber, 0 to 10.06The space between neighbouring cards, a fraction of a cell.
card.paddingnumber, 0 to 10.065The space between a card's edge and its content, a fraction of a cell.
card.shaperound, chamfer"round"round is the rounded rectangle of radius; chamfer cuts the corners named in cutCorners with a straight line (Ember).
card.cutnumber, 0 to 0.50.14Chamfer size, a fraction of a cell, limited to half the card's smaller side.
card.cutCornerslist 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.fillGradientgroupA linear gradient that replaces colors.cardFill.
card.fillGradient.colorslist of 2 to 6 coloursStops, evenly spaced.
card.fillGradient.anglenumber, -360 to 36090Degrees, 0 = left to right, 90 = top to bottom.
card.borderStylesolid, dashed, none"solid"solid, dashed (see borderDash) or none.
card.borderDashgroupThe 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.onnumber, 0.002 to 1Length of a dash, a fraction of a cell.
card.borderDash.offnumber, 0.002 to 1Length of a gap, a fraction of a cell.
card.borderGradientgroupColours the border with a gradient, solid or dashed (Rigline, Ember).
card.borderGradient.colorslist of 2 to 8 coloursThe stops, evenly spaced.
card.borderGradient.kindlinear, 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.anglenumber, -360 to 360135Direction of a linear gradient in degrees: 0 left to right, 90 top to bottom.
card.borderAnimategroupMoves the border. It moves only at the motion level full, and never on a dashed border or one without a width.
card.borderAnimate.modenone, spin, pulse"none"spin turns a conic borderGradient once round the card; pulse breathes the border's opacity; none leaves it still.
card.borderAnimate.periodnumber, 1 to 1207Seconds for one cycle.
card.cornerMarksgroupRegistration marks at the corners, on the card or outside it (Carbon, Blueprint).
card.cornerMarks.stylenone, 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.cornerslist of names of tl, tr, br, blThe corners that get a mark: tl, tr, br, bl. Default: tl and br.
card.cornerMarks.sizenumber, 0.01 to 0.50.08Length of each arm, a fraction of a cell.
card.cornerMarks.thicknessnumber, 0.002 to 0.10.01Line width, a fraction of a cell.
card.cornerMarks.insetnumber, -0.1 to 0.10Distance 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.colorcolourThe marks' colour. Default: the accent.
card.shadowgroupA drop shadow under each card, soft or a hard offset. It is drawn under all the cards, never over a neighbour.
card.shadow.xnumber, -0.5 to 0.50Horizontal offset, a fraction of a cell.
card.shadow.ynumber, -0.5 to 0.50Vertical offset, a fraction of a cell.
card.shadow.blurnumber, 0 to 1Blur, a fraction of a cell. 0 or absent gives a hard edge (Pop).
card.shadow.spreadnumber, -0.5 to 0.50How far the shadow grows beyond the card on every side, a fraction of a cell. Negative shrinks it.
card.shadow.colorcolourThe shadow's colour. Default: black at 40 % opacity.
card.glowgroupA glow round each card, blurred outwards from its shape (Rigline). Without blur it draws nothing.
card.glow.blurnumber, 0 to 1Blur radius, fraction of a cell.
card.glow.colorcolourThe glow's colour. Default: the colour of the thing it glows round.
card.glow.alphanumber, 0 to 10.6Strength.
card.highlightgroupA line of light just inside the top or bottom edge of the card (Prism).
card.highlight.topcolourColour of the specular line along the top edge.
card.highlight.bottomcolourColour of the rim light along the bottom edge, inside the card.
card.highlight.thicknessnumber, 0.001 to 0.10.01Line width, a fraction of a cell.
card.sheengroupA radial patch of light inside the card, over the fill and under the content (Prism).
card.sheen.colorcolourThe light's colour, fading to transparent at its edge. Without it there is no sheen.
card.sheen.xnumber, -1 to 20.1Centre, fraction of card width.
card.sheen.ynumber, -1 to 20Centre, fraction of card height.
card.sheen.sizenumber, 0.1 to 30.7Radius, fraction of card width.
card.accentStripgroupA lit line along one edge of every card, inside it (Carbon's scan line, Rigline's tile strips).
card.accentStrip.sidetop, bottom, left, right"bottom"The edge the strip runs along: top, bottom, left or right.
card.accentStrip.thicknessnumber, 0.005 to 0.20.03Line width, a fraction of a cell.
card.accentStrip.lengthnumber, 0.1 to 10.72Length of the strip as a fraction of the side it runs along. It is centred on the side.
card.accentStrip.colorslist of 1 to 8 coloursStrip colours, one to eight, cycled card by card (and slot by slot in the dock). Default: the accent.
card.accentStrip.fadetrue or falseFades the strip to transparent along its length (Carbon's scan line).
card.accentStrip.glowgroupA blurred copy of the strip laid under it, inside the card. A glow without blur draws nothing.
card.accentStrip.glow.blurnumber, 0 to 1Blur radius, fraction of a cell.
card.accentStrip.glow.colorcolourThe glow's colour. Default: the colour of the thing it glows round.
card.accentStrip.glow.alphanumber, 0 to 10.6Strength.
card.tintnone, cycle"none"cycle fills the cards from colors.cardTints in page order, row by row; none uses the card fill.
card.compactgroupOverrides 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.radiusnumber, 0 to 1Corner radius of a compact card, a fraction of a cell, in place of card.radius.
card.compact.borderWidthnumber, 0 to 1Border width of a compact card, a fraction of a cell, in place of card.borderWidth.
card.compact.shaperound, chamfer, circleround, chamfer, or circle, which makes a square card a circle (Obsidian's dock).
card.compact.accentStripgroupA lit strip for compact cards (Rigline's tiles), merged over card.accentStrip key by key.
card.compact.accentStrip.sidetop, bottom, left, right"bottom"The edge the strip runs along: top, bottom, left or right.
card.compact.accentStrip.thicknessnumber, 0.005 to 0.20.03Line width, a fraction of a cell.
card.compact.accentStrip.lengthnumber, 0.1 to 10.72Length of the strip as a fraction of the side it runs along. It is centred on the side.
card.compact.accentStrip.colorslist of 1 to 8 coloursStrip colours, one to eight, cycled slot by slot. Default: the accent.
card.compact.accentStrip.glowgroupA blurred copy of the strip laid under it, inside the card. A glow without blur draws nothing.
card.compact.accentStrip.glow.blurnumber, 0 to 1Blur radius, fraction of a cell.
card.compact.accentStrip.glow.colorcolourThe glow's colour. Default: the colour of the thing it glows round.
card.compact.accentStrip.glow.alphanumber, 0 to 10.6Strength.
card.compact.cornerMarksgroupRegistration marks for compact cards, merged over card.cornerMarks key by key.
card.compact.cornerMarks.stylenone, 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.cornerslist of names of tl, tr, br, blThe corners that get a mark: tl, tr, br, bl. Default: tl and br.
card.compact.cornerMarks.sizenumber, 0.01 to 0.5Length of each arm, a fraction of a cell.
card.compact.cornerMarks.thicknessnumber, 0.002 to 0.1Line width, a fraction of a cell.
card.compact.cornerMarks.insetnumber, -0.1 to 0.10Distance 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.colorcolourThe marks' colour. Default: the accent.
  • Shape. round is the rounded rectangle of card.radius, limited to half the card’s smaller side. chamfer cuts the corners named in cutCorners with a straight line cut long along each side, limited to half the smaller side; the other corners are square and radius is not used. An empty cutCorners gives 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), tint cycle with colors.cardTints, colors.cardFill. Without cardTints a 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.borderWidth wide: solid, none, or dashed with borderDash. 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. borderGradient colours the border, solid or dashed: linear at its angle, conic once round the card’s centre, starting at the right. A border width of 0 draws nothing.
  • Animated border. spin turns the conic borderGradient once round the card every period seconds (7 when absent); pulse breathes 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 level full, while the display is on and the deck is shown; otherwise it is the still border, drawn exactly as a border without borderAnimate.
  • 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.log once (THEME055). The highlight, strip and mark thicknesses are hairlines too.
  • Highlight. highlight.top and highlight.bottom draw a line thickness wide 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 x times the card’s width and y times its height, reaching size times the card’s width, from color to transparent; over the fill, under the content.
  • Accent strip. A line thickness wide along side, inside the card, length times the side long and centred on it, over the fill and under the content. Its colour is the entry of colors at the card’s index (the same index as the tint). fade fades it from its colour at the start to transparent at the end. glow lays a blurred copy under it.
  • Corner marks. bracket draws an L at each corner in corners, one arm along each edge; tick draws one arm, along the top or bottom edge. Each arm is size long from the mark’s outer corner and thickness wide. inset is 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 x and y, grown by spread on every side, blurred by blur, in color. The glow blurs the card’s shape outwards by blur. 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.gap past the card; urdeck.log says so once. A theme with opaque cards keeps its full reach (THEME054 tells 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.compact in place of the page card’s values, each on its own: radius, borderWidth and shape replace the page’s, and a value compact does not set is the page card’s. compact.accentStrip and compact.cornerMarks are merged key by key over the page’s. A circle is 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.

KeyValueDefaultMeaning
pattern.kindnone, dots, grid, hatch, scanlines"none"dots, grid, hatch, scanlines or none.
pattern.spacingnumber, 0.02 to 20.13Distance between marks, a fraction of a cell.
pattern.majorEverywhole number, 2 to 20Every Nth line of a grid is drawn heavier (Blueprint: 5).
pattern.thicknessnumber, 0.001 to 0.10.01Line width, or a dot's radius, a fraction of a cell.
pattern.colorcolourThe marks' colour. Default: the muted text colour at a sixteenth of its opacity.
pattern.majorgroupThe look of a grid's heavier lines.
pattern.major.colorcolourColour of the heavier lines. Default: the pattern's own.
pattern.major.thicknessnumber, 0.001 to 0.1Width of the heavier lines, a fraction of a cell. Default: the pattern's own.
pattern.anglenumber, -180 to 18045Direction of a hatch in degrees from horizontal, rising to the right.
  • Kinds. dots (round dots of radius thickness), grid (horizontal and vertical lines; with majorEvery, every majorEvery-th line in each direction, starting with the first, takes major), hatch (parallel lines, spacing apart across the lines) and scanlines (horizontal lines). The first mark is half a repeat in from the top and left edges.
  • The angle of a hatch is 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. angle is used by hatch only, majorEvery and major by grid only.
  • 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 background is, none included, 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.

KeyValueDefaultMeaning
divider.stylenone, line, gradient, dimension"line"line, gradient, dimension (a line with end ticks and an optional centred label, Blueprint) or none.
divider.colorcolourThe rule's colour. Default: the muted text colour at about a third of its opacity.
divider.thicknessnumber, 0.001 to 0.050.01Line width, a fraction of a cell.
divider.gradientTocolourThe 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.

KeyValueDefaultMeaning
well.fillcolourThe well's fill colour.
well.radiusnumber, 0 to 0.50.09Corner radius, a fraction of a cell.
well.bordercolourThe well's border colour.

chip

A pill round short text: a gauge's status word (OK, WARM) and the weather card's condition.

KeyValueDefaultMeaning
chip.shapenone, pill"none"pill draws a pill round the text and shrinks it with the text; none draws only the text.
chip.fillcolourThe pill's fill colour.
chip.bordercolourThe pill's border colour.
chip.textColorcolourThe colour of the text inside the pill.
chip.colorBynone, 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.

KeyValueDefaultMeaning
typography.fonttext"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.fontsgroupA font per role. A role without one uses typography.font.
typography.fonts.valuetextFont of readout values: a family or a file in the theme folder.
typography.fonts.unittextFont of readout units: a family or a file in the theme folder.
typography.fonts.labeltextFont of readout labels: a family or a file in the theme folder.
typography.weightsgroupFont weight per role. A variable font takes it through its weight axis; a static font is used as it is.
typography.weights.valuenumber, 1 to 1000600Weight of readout values.
typography.weights.unitnumber, 1 to 1000500Weight of readout units.
typography.weights.labelnumber, 1 to 1000400Weight of readout labels.
typography.weights.bodynumber, 1 to 1000400Weight of body text.
typography.weights.titlenumber, 1 to 1000300Weight of titles.
typography.labelSizenumber, 0.005 to 10.091Size of labels, a fraction of a cell.
typography.bodySizenumber, 0.005 to 10.0845Size of body text, a fraction of a cell.
typography.titleSizenumber, 0.005 to 10.11Size of titles, a fraction of a cell.
typography.unitRationumber, 0.05 to 10.4The size of a readout's unit as a fraction of its value's size.
typography.valueScalenumber, 0.5 to 21Multiplies 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.casegroupLetter case applied when text is drawn.
typography.case.labelnone, upper, lower"none"Case of readout labels and of text lines at the label step: none, upper or lower.
typography.case.titlenone, upper, lower"none"Case of text lines at the title step: none, upper or lower.
typography.trackinggroupLetter spacing in em, added after each character but the last. Equal-width digits stay equal.
typography.tracking.valuenumber, -0.1 to 0.6Spacing of readout values, in em.
typography.tracking.labelnumber, -0.1 to 0.6Spacing of readout labels and label lines, in em.
typography.tracking.titlenumber, -0.1 to 0.6Spacing of title lines, in em.
typography.opticalSizeoff, 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.slantnumber, 0 to 200Leans a readout's value to the right, in degrees. Prefer a real italic file when the family has one.
typography.valueFillgroupFills the value text with a gradient (Rigline's clock).
typography.valueFill.colorslist of 2 to 6 coloursGradient stops, two to six, evenly spaced.
typography.valueFill.anglenumber, -360 to 3600Direction in degrees: 0 left to right, 90 top to bottom.
typography.valueGlowgroupA blurred copy behind the value text.
typography.valueGlow.blurnumber, 0 to 1Blur radius, fraction of a cell.
typography.valueGlow.colorcolourThe glow's colour. Default: the colour of the thing it glows round.
typography.valueGlow.alphanumber, 0 to 10.6Strength.
  • Fonts per role. fonts.value, fonts.unit and fonts.label name a family or a file in the theme folder for that role; a role without one, and the body and title, use typography.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. off leaves the axis where the font puts it. auto sets 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: value to 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), label to labels and label lines, title to title lines. Body text and units are not spaced.
  • slant leans 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.
  • valueScale multiplies 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.
  • valueFill fills 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. valueGlow draws 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.

KeyValueDefaultMeaning
stroke.thicknessnumber, 0.001 to 10.08Line thickness as a fraction of the drawn element.
stroke.capround, square"round"The ends of a line: round or square.

gauge

The shape of a gauge and the parts it can have.

KeyValueDefaultMeaning
gauge.stylering, 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.labelPositionauto, inside, below, above"auto"Where a gauge's label sits. auto keeps the default placement (Prism: below).
gauge.layoutauto, 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.readoutGapnumber, 0 to 40.5The space between a bar's, meter's or thick bar's track and its readout, in thicknesses of the track.
gauge.sweepgroupThe arc a ring, tach or marker gauge covers.
gauge.sweep.startnumber, -360 to 360135Where the arc starts, in degrees: 0 is 3 o'clock, clockwise. The default ring starts at 135.
gauge.sweep.spannumber, 30 to 360270How many degrees the arc covers. The default ring covers 270.
gauge.segmentsgroupChops the fill, and the track, into LED-style blocks.
gauge.segments.lengthnumber, 0.005 to 1Length of a segment: along a bar, a fraction of a cell; round a ring, the arc length in cells.
gauge.segments.gapnumber, 0 to 1The space between segments, in the same unit as the length.
gauge.outlinegroupAn outline round the track (the thick bar).
gauge.outline.widthnumber, 0.002 to 0.2Outline width, a fraction of a cell.
gauge.outline.colorcolourThe outline's colour.
gauge.ticksgroupTick marks on rings, tachs and meters.
gauge.ticks.countwhole number, 2 to 60How many ticks. A tach with no ticks group has 28; a ticks group that leaves this out has 11.
gauge.ticks.majorEverywhole number, 1 to 20Every Nth tick is longer.
gauge.ticks.lengthnumber, 0.005 to 0.5Tick length, a fraction of a cell.
gauge.ticks.thicknessnumber, 0.001 to 0.05Tick width, a fraction of a cell.
gauge.ticks.colorcolourThe ticks' colour.
gauge.ticks.labelstrue or falsePrints a number at each major tick, from 0 to 100.
gauge.scalegroupLabels printed under a bar (Paper).
gauge.scale.labelslist of 2 to 11 textTwo to eleven labels printed under a bar at even spacing, for example ["0", "50", "100"].
gauge.scale.sizenumber, 0.005 to 0.5Size of the labels, a fraction of a cell.
gauge.redlinegroupA 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.fromnumber, 0 to 10.85Where the zone starts, as a fraction of the scale.
gauge.redline.colorcolourThe zone's colour.
gauge.redline.glowgroupA soft glow on the zone.
gauge.redline.glow.blurnumber, 0 to 1Blur radius, fraction of a cell.
gauge.redline.glow.colorcolourThe glow's colour. Default: the colour of the thing it glows round.
gauge.redline.glow.alphanumber, 0 to 10.6Strength.
gauge.redline.lightsAbovetrue or falseThe 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.glowgroupA glow round the fill. Default colour: the fill's.
gauge.glow.blurnumber, 0 to 1Blur radius, fraction of a cell.
gauge.glow.colorcolourThe glow's colour. Default: the colour of the thing it glows round.
gauge.glow.alphanumber, 0 to 10.6Strength.
gauge.markergroupA marker at the value (Obsidian's jewel, Blueprint's needle).
gauge.marker.shapediamond, needle"diamond"diamond or needle.
gauge.marker.sizenumber, 0.005 to 0.5Marker size, a fraction of a cell.
gauge.marker.colorcolourThe marker's colour.
gauge.marker.halotrue or falseDraws a dark ring round the marker.
gauge.crosshairtrue or falseDraws a cross at the centre of dials (Blueprint).
gauge.trackgroupOverrides the default track, which is the fill's colour at the alpha of colors.accentDim.
gauge.track.colorcolourThe track's colour.
gauge.track.widthRationumber, 0.1 to 21Track width relative to stroke.thickness.
gauge.colorByaccent, ramp"accent"ramp colours the fill by its value along colors.ramp instead of the accent, warning and critical steps.
gauge.valueTinttrue or falsefalseColours the readout with the same colour as the fill.
gauge.sparklinegroupA 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.enabledtrue or falseTurns the history line on.
gauge.sparkline.heightnumber, 0.05 to 10.3Height of the line, a fraction of a cell.
gauge.sparkline.historySecondsnumber, 10 to 60060How many seconds of history the line shows.
gauge.sparkline.strokeWidthnumber, 0.002 to 0.1Line width, a fraction of a cell.
gauge.statusgroupA 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.enabledtrue or falseTurns the status chip on.
gauge.status.thresholdslist of exactly 2 numbersWhere the status turns warm and hot, as fractions from 0 to 1. Default: 0.7 and 0.9.
gauge.status.labelslist of exactly 3 textThe 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.

KeyValueDefaultMeaning
indicator.bandHeightnumber, 0.02 to 10.25Height of the band reserved at the bottom of the screen, fraction of a cell.
indicator.dotSizenumber, 0.005 to 0.50.05Diameter of a dot.
indicator.pillLengthnumber, 0.005 to 10.14Length of the current page's pill.
indicator.spacingnumber, 0 to 10.05Space between marks.
indicator.activecolour"#ffffff"Colour of the current page's mark.
indicator.inactivecolour"#59ffffff"Colour of the other marks.
indicator.backdropcolour"#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).

KeyValueDefaultMeaning
press.scalenumber, 0.5 to 10.96The pressed card's size; 1 leaves it unchanged.
press.opacitynumber, 0.1 to 10.85The 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.

KeyValueDefaultMeaning
dock.heightnumber, 0.2 to 10.71Height 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.

KeyValueDefaultMeaning
icons.settextName 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.strokenumber, 0.005 to 0.2Line width of the set's icons, a fraction of the icon's size.
icons.tinttextaccent, 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.glowgroupA glow behind the set's icons (Rigline). Its colour defaults to the icon's tint.
icons.glow.blurnumber, 0 to 1Blur radius, fraction of a cell.
icons.glow.colorcolourThe glow's colour. Default: the colour of the thing it glows round.
icons.glow.alphanumber, 0 to 10.6Strength.

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.

KeyValueDefaultMeaning
background.defaultgroupThe moving background this theme selects.
background.default.nametextA shader background's name: built in, or a folder in backgrounds/. It draws with the theme's palette.
background.staticgroupA 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.imagetextA file in the theme folder, scaled to cover the deck. A path that leaves the folder is ignored.
background.static.colorcolourA plain colour.
background.static.gradientgroupA linear or radial gradient.
background.static.gradient.colorslist of 2 to 6 coloursThe stops, two to six, evenly spaced.
background.static.gradient.kindlinear, radial"linear"linear or radial.
background.static.gradient.anglenumber, -360 to 36090Direction of a linear gradient in degrees: 0 left to right, 90 top to bottom.
background.static.gradient.cxnumber, -1 to 20.5Centre of a radial gradient across the deck, as a fraction of its width.
background.static.gradient.cynumber, -1 to 20Centre of a radial gradient down the deck, as a fraction of its height.
background.static.gradient.radiusnumber, 0.1 to 30.7Radius of a radial gradient, as a fraction of the deck's width.
background.scrimgroupA 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.colorcolourThe veil's colour. Its own alpha multiplies alpha.
background.scrim.alphanumber, 0 to 1The veil's opacity. Without both a colour and an alpha there is no scrim.

motion

How much the theme may move.

KeyValueDefaultMeaning
motion.levelfull, 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.