Style variables
The CSS variables a widget's style can read: the theme's colours, fonts, shapes and motion, the tile's layout and the widget's settings.
Surfaces and text
--hd-canvas- The page behind the tiles: a colour or a gradient.
--hd-surface- A tile’s colour.
--hd-surface-fill- What a tile is painted with: the surface, or the theme’s gradient for it.
--hd-surface-raised- Something on a tile that stands out from it, like a button.
--hd-overlay- Menus, dialogs and popups over the page.
--hd-border- Lines round tiles and between parts.
--hd-text- Text and big numbers.
--hd-text-muted- Labels and secondary text.
--hd-text-faint- The quietest text: hints, units, times.
--hd-track- The empty part of a slider, bar or ring.
--hd-focus- The outline round what has keyboard focus.
Accent and light
--hd-accent- The theme’s accent: active controls, links, highlights.
--hd-theme-accent- The theme’s accent, even inside a tile that sets an accent of its own.
--hd-accent-fill- What accented parts are painted with: the accent, or a gradient.
--hd-on-accent- Text and icons on the accent.
--hd-lit- The warm colour of a device that is on.
--hd-lit-soft- A soft version of the lit colour, for washes and glows.
--hd-lit-wash- The glow that fills a tile whose device is on (a flat tint on e-ink).
--hd-cool- The cool counterpart: cooling, cold water, low prices on some themes.
States and charts
--hd-good- All is well: locked, closed, cheap.
--hd-warn- Worth a look: a low battery, a door open for a while.
--hd-danger- Act now: smoke, a leak, an alarm.
--hd-chart-1- The first chart colour; charts and series use 1 to 6 in order.
--hd-chart-2- The second chart colour.
--hd-chart-3- The third chart colour.
--hd-chart-4- The fourth chart colour.
--hd-chart-5- The fifth chart colour.
--hd-chart-6- The sixth chart colour.
--hd-chart-fill- How strongly an area under a chart line is filled, 0 to 1 (0 on e-ink).
--hd-price-cheap- A cheap hour on price bars and in the energy widgets.
--hd-price-normal- An ordinary hour.
--hd-price-high- An expensive hour.
--hd-price-negative- An hour you get paid to use energy.
Numbers and type
--hd-font-display- The font of big numbers and headings.
--hd-font-ui- The font of labels and running text.
--hd-font-mono- The monospaced font of small labels.
--hd-number-weight- How bold big numbers are.
--hd-number-stretch- How wide big numbers are, as a font stretch.
--hd-number-fill- What big numbers are painted with: the text colour, or a gradient.
--hd-number-clip- 1 when big numbers are a gradient: paint them with `background-clip: text`.
--hd-label-transform- How labels are cased: uppercase, or as written.
--hd-label-tracking- The letter spacing of labels.
Shape and depth
--hd-radius-sm- Small corners: chips, small buttons.
--hd-radius-md- Medium corners: buttons, fields.
--hd-radius-lg- Large corners: tiles.
--hd-border-width- How thick borders are.
--hd-pad- The room inside a tile.
--hd-theme-pad- The theme’s room inside a tile, also on small tiles, whose --hd-pad is less.
--hd-gap- The room between tiles.
--hd-collapse- 1 when tiles share their borders, as on e-ink.
--hd-shadow- A tile’s shadow.
--hd-shadow-lit- The shadow and glow of a tile whose device is on.
--hd-shadow-outer- A tile’s shadow without what is painted inside it (an inset bar), for menus and panels.
--hd-blur- The frosted-glass filter behind tiles, or none.
--hd-texture- A grain over tiles, or none.
A theme’s character
--hd-on-lit- Text and icons on the lights-on colour, such as a glyph on it; on a filled tile, the fill.
--hd-lit-fill- The lights-on colour a tile that is on fills with, where the theme fills such tiles.
--hd-lit-ink- Text and icons on a filled tile that is on.
--hd-lit-good- Good as it reads on a filled tile that is on.
--hd-lit-warn- Warning as it reads on a filled tile that is on.
--hd-lit-danger- Danger as it reads on a filled tile that is on.
--hd-lit-cool- Cool as it reads on a filled tile that is on.
--hd-lit-chart-1- Chart line 1 as it reads on a filled tile that is on.
--hd-lit-chart-2- Chart line 2 as it reads on a filled tile that is on.
--hd-lit-chart-3- Chart line 3 as it reads on a filled tile that is on.
--hd-lit-chart-4- Chart line 4 as it reads on a filled tile that is on.
--hd-lit-chart-5- Chart line 5 as it reads on a filled tile that is on.
--hd-lit-chart-6- Chart line 6 as it reads on a filled tile that is on.
--hd-lit-price-cheap- The cheap price colour as it reads on a filled tile that is on.
--hd-lit-price-normal- The normal price colour as it reads on a filled tile that is on.
--hd-lit-price-high- The high price colour as it reads on a filled tile that is on.
--hd-lit-price-negative- The below-zero price colour as it reads on a filled tile that is on.
--hd-icon-weight- `regular`, `bold` or `duotone`: the weight icons rest at, read by `hd-icon`.
--hd-chip-radius- The corners of the chip behind a tile’s icon.
--hd-chip-bg- The chip behind a tile’s icon.
--hd-chip-ink- The icon on its chip.
--hd-chip-bg-lit- The chip while the tile is on.
--hd-chip-ink-lit- The icon on its chip while the tile is on.
--hd-tile-radius- The tiles’ corners one by one, where the theme gives each its own.
--hd-tile-border-top- The width of the border above a tile.
--hd-tile-border-right- The width of the border right of a tile.
--hd-tile-border-bottom- The width of the border under a tile.
--hd-tile-border-left- The width of the border left of a tile.
--hd-theme-scale- The size of everything in the tiles, as a factor (1.15 for 115 %); a tile’s own content size wins.
--hd-title-weight- The weight of dashboard titles, where the theme gives them one apart from numbers.
--hd-title-line-height- The line height of dashboard titles, where a tall display font needs more than 1.
--hd-number-tracking- The letter spacing of big numbers, in em.
--hd-number-figures- `tabular-nums` where digits are all one width.
--hd-chart-line- The width of chart lines in px.
--hd-chart-curve- `smooth`, `straight` or `step`: how chart lines run.
--hd-chart-grid- `none`, `dashed` or `solid`: the charts’ grid lines.
--hd-chart-dots- `none`, `last` or `all`: dots on chart lines.
--hd-control-radius- The corners of switches, sliders, pills and badges (999px for pills).
--hd-control-round- The corners of round buttons (50% for circles).
--hd-track-height- A slider’s track thickness.
--hd-thumb-w- The width of a slider’s handle.
--hd-thumb-h- The height of a slider’s handle.
--hd-thumb-radius- The corners of a slider’s handle.
--hd-press- What a press does, as a transform; each control’s own shrink when unset.
--hd-topbar-edges- The phone’s top bar’s border widths, all round with a floating sidebar.
--hd-tile-radius-tl- The theme’s top-left corner of tiles, where it gives each corner its own.
--hd-tile-radius-tr- The theme’s top-right corner of tiles, where it gives each corner its own.
--hd-tile-radius-br- The theme’s bottom-right corner of tiles, where it gives each corner its own.
--hd-tile-radius-bl- The theme’s bottom-left corner of tiles, where it gives each corner its own.
--hd-frame-top-color- The colour of a frame’s top (55.7); see-through where the bars are painted in its background.
--hd-frame-right-color- The colour of a frame’s right side.
--hd-frame-bottom-color- The colour of a frame’s bottom.
--hd-frame-left-color- The colour of a frame’s left side.
--hd-frame-strip- A frame with a cap, painted in the tile’s background: its bars and the elbow’s inner curves.
--hd-corner-shape- `squircle` or `bevel`: the tiles’ corner shape, where the browser draws it.
Motion and e-ink
--hd-motion-level- `full`, `reduced` or `none`: how much is allowed to move.
--hd-motion-fast- A quick change, like a press. 0ms when nothing may move.
--hd-motion-base- An ordinary change, like a value sliding.
--hd-motion-slow- A slow change, like a theme switching.
--hd-ease-out- The easing of most movement.
--hd-ease-spring- A springy easing, for things that bounce into place.
--hd-flat- 1 on e-ink: no colours, glows or gradients, only black and white.
--hd-appearance- `light`, `dark` or `paper`, for what colours alone can’t decide.
--hd-logo-dash- The Tiledash orange, in the shade for the theme’s light or dark ground (the text’s colour on e-ink).