Themes
A theme gives LCARdS cards their default colours, fonts and sizes as named tokens, such as colors.ui.primary, that the cards look up when they draw. It works alongside the HA-LCARS system theme: most colour tokens point at an HA-LCARS variable, with an LCARdS palette colour as the fallback.
- Write
theme:and a token path in a card's config, and the card takes that value from the active theme instead of a fixed colour. - LCARdS also adds its own
--lcards-*colour palette to every page, sovar(--lcards-orange)works with or without HA-LCARS. - Alert modes recolour both, so a card that uses theme tokens or palette colours changes with the alert level.
Find a token
The Config Panel's Theme Studio lists every token and CSS variable. A card editor's Main Engineering > Theme tab shows the tokens that card uses, with a button that copies the theme: reference.
Built-in Themes
lcards-default is the theme LCARdS loads at startup, and today the only one. Themes come in content packs, so new packs can change the look of every card at once.
- The Pack Explorer shows every token a theme provides.
- To change a single token without a new theme, use Token Overrides in the Theme Studio: for everyone, one user or one device.
| Theme | Description |
|---|---|
lcards-default | The standard LCARS look, built on the HA-LCARS colours with LCARdS fallbacks |
Using Theme Tokens
Write theme: and a token path as the whole value of a colour or size setting, and the card takes that value from the active theme. Use it for colours that should follow their role (structure, accent, alert) rather than a fixed shade.
- In a text field's
content, put the token in braces to write its value into the text:{theme:colors.ui.primary}is a token template. In a colour or size setting, write it without braces. - Inside a colour function the prefix is optional:
alpha(colors.ui.primary, 0.4). - The config checker warns about a token path that doesn't exist and suggests the closest one.
type: custom:lcards-button
entity: light.demo
preset: lozenge
text:
name:
show: true
color: theme:colors.text.onLight
style:
card:
color:
background:
active: theme:colors.ui.tertiary
inactive: theme:colors.ui.quaternary| Write | Where | Example |
|---|---|---|
theme:<path> | The whole value of a colour or size setting | color: theme:colors.ui.primary |
{theme:<path>} | Inside text, as a template | content: "SIZE {theme:typography.fontSize.base}" |
<path> | Inside a colour function | background: alpha(colors.ui.primary, 0.4) |
Token Namespaces
Tokens are grouped by what they set: colours, type, borders, effects, and the defaults of each card. The Theme Studio lists them all; a card editor's Main Engineering > Theme tab lists the ones that card uses.
| Namespace | What it holds | Example |
|---|---|---|
colors | Colours by role: text, ui, card, status, chart, alert, grid | colors.alert.red |
typography | Font family, sizes, weights and text transform | typography.fontSize.base (14) |
borders | Border widths and corner radii | borders.radius.lg (8) |
effects | Opacity steps for states such as inactive and unavailable | effects.opacity.inactive (0.7) |
components | Each card's own defaults: button, elbow, slider, chart, line, alert, dpad, backgroundAnimation | components.button.background.active |
colors.ui
The four structure colours of an LCARS screen, by role. In lcards-default each takes the HA-LCARS theme colour, and falls back to an LCARdS palette colour without HA-LCARS.
| Token | lcards-default value |
|---|---|
colors.ui.primary | var(--lcars-ui-primary, var(--lcards-gray-medium)) |
colors.ui.secondary | var(--lcars-ui-secondary, var(--lcards-gray-medium-light)) |
colors.ui.tertiary | var(--lcars-ui-tertiary, var(--lcards-orange-medium-dark)) |
colors.ui.quaternary | var(--lcars-ui-quaternary, var(--lcards-gray-dark)) |
LCARdS CSS Colour Palette
LCARdS adds --lcards-<colour>-<shade> CSS variables to every page at startup: five colour families of twelve names each, plus --lcards-moonlight. They work anywhere a CSS colour does, and don't need to be in your HA-LCARS theme.
- The base colour has two names:
--lcards-orangeand--lcards-orange-mediumare the same colour. - The colours below are the normal (green alert) values. In an alert mode every variable shifts with it, so you never change your references.
- To follow the HA-LCARS theme where there is one, name its colour first and the palette as the fallback:
var(--lcars-orange, var(--lcards-orange)).
type: custom:lcards-button
preset: lozenge
text:
label:
show: true
content: PALETTE
color: var(--lcards-blue-darkest)
style:
card:
color:
background: var(--lcars-blue, var(--lcards-blue-light))
border:
color: var(--lcards-orange)
width: 3Orange
| Swatch | CSS variable | Tone | Hex | Notes |
|---|---|---|---|---|
![]() | --lcards-orange-darkest | 05 | #d91604 | Canon |
![]() | --lcards-orange-10 | 10 | #e01808 | Computed (interpolated) |
![]() | --lcards-orange-dark | 20 | #ef1d10 | Canon |
![]() | --lcards-orange-medium-dark | 30 | #e7442a | Canon |
![]() | --lcards-orange, --lcards-orange-medium | 40 | #ff6753 | Canon (base orange) |
![]() | --lcards-orange-50 | 50 | #ff715d | Computed (interpolated) |
![]() | --lcards-orange-60 | 60 | #ff7b66 | Computed (interpolated) |
![]() | --lcards-orange-medium-light | 70 | #ff8470 | Canon |
![]() | --lcards-orange-light | 80 | #ff977b | Canon |
![]() | --lcards-orange-lightest | 90 | #ffb399 | Canon |
![]() | --lcards-orange-95 | 95 | #ffceb3 | Computed (extrapolated) |
Gray
| Swatch | CSS variable | Tone | Hex | Notes |
|---|---|---|---|---|
![]() | --lcards-gray-darkest | 05 | #1e2229 | Canon |
![]() | --lcards-gray-10 | 10 | #232933 | Computed (interpolated) |
![]() | --lcards-gray-dark | 20 | #2f3749 | Canon |
![]() | --lcards-gray-medium-dark | 30 | #52596e | Canon |
![]() | --lcards-gray, --lcards-gray-medium | 40 | #6d748c | Canon (base gray) |
![]() | --lcards-gray-50 | 50 | #7d849b | Computed (interpolated) |
![]() | --lcards-gray-60 | 60 | #8d94aa | Computed (interpolated) |
![]() | --lcards-gray-medium-light | 70 | #9ea5ba | Canon |
![]() | --lcards-gray-light | 80 | #d2d5df | Canon |
![]() | --lcards-gray-lightest | 90 | #f3f4f7 | Canon |
![]() | --lcards-gray-95 | 95 | #f8f9fc | Computed (extrapolated) |
![]() | --lcards-moonlight | - | #dfe1e8 | Near-white, for text and labels (not part of the scale) |
Blue
| Swatch | CSS variable | Tone | Hex | Notes |
|---|---|---|---|---|
![]() | --lcards-blue-darkest | 05 | #002241 | Canon |
![]() | --lcards-blue-10 | 10 | #082b48 | Computed (interpolated) |
![]() | --lcards-blue-dark | 20 | #1c3c55 | Canon |
![]() | --lcards-blue-medium-dark | 30 | #2a7193 | Canon |
![]() | --lcards-blue, --lcards-blue-medium | 40 | #37a6d1 | Canon (base blue) |
![]() | --lcards-blue-50 | 50 | #48b2db | Computed (interpolated) |
![]() | --lcards-blue-60 | 60 | #58bee6 | Computed (interpolated) |
![]() | --lcards-blue-medium-light | 70 | #67caf0 | Canon |
![]() | --lcards-blue-light | 80 | #93e1ff | Canon |
![]() | --lcards-blue-lightest | 90 | #00eeee | Canon: an electric cyan accent, not a pale tint (see Shade Scale) |
![]() | --lcards-blue-95 | 95 | #44ffff | Computed (extrapolated) |
Green
| Swatch | CSS variable | Tone | Hex | Notes |
|---|---|---|---|---|
![]() | --lcards-green-darkest | 05 | #0c2a15 | Canon |
![]() | --lcards-green-10 | 10 | #0b2e16 | Computed (interpolated) |
![]() | --lcards-green-dark | 20 | #083717 | Canon |
![]() | --lcards-green-medium-dark | 30 | #095320 | Canon |
![]() | --lcards-green, --lcards-green-medium | 40 | #266239 | Canon (base green) |
![]() | --lcards-green-50 | 50 | #306d43 | Computed (interpolated) |
![]() | --lcards-green-60 | 60 | #3b784e | Computed (interpolated) |
![]() | --lcards-green-medium-light | 70 | #458359 | Canon |
![]() | --lcards-green-light | 80 | #80bb93 | Canon |
![]() | --lcards-green-lightest | 90 | #b8e0c1 | Canon |
![]() | --lcards-green-95 | 95 | #cdf6d6 | Computed (extrapolated) |
Yellow
| Swatch | CSS variable | Tone | Hex | Notes |
|---|---|---|---|---|
![]() | --lcards-yellow-darkest | 05 | #70602c | Canon |
![]() | --lcards-yellow-10 | 10 | #847131 | Computed (interpolated) |
![]() | --lcards-yellow-dark | 20 | #ac943b | Canon |
![]() | --lcards-yellow-medium-dark | 30 | #d2bf50 | Canon |
![]() | --lcards-yellow, --lcards-yellow-medium | 40 | #f9ef97 | Canon (base yellow) |
![]() | --lcards-yellow-50 | 50 | #fbf3a8 | Computed (interpolated) |
![]() | --lcards-yellow-60 | 60 | #fdf6b9 | Computed (interpolated) |
![]() | --lcards-yellow-medium-light | 70 | #fffac9 | Canon |
![]() | --lcards-yellow-light | 80 | #e7e6de | Canon: turns toward beige, not a smooth step (see Shade Scale) |
![]() | --lcards-yellow-lightest | 90 | #f5f5dc | Canon: warm white, cream |
![]() | --lcards-yellow-95 | 95 | #fbfbe2 | Computed (extrapolated) |
Shade Scale
Each family has eleven shades, from darkest to lightest, matching the eleven tones of Home Assistant's own colour scale (--ha-color-<family>-05 to -95). The Tone column above says which tone a shade fills.
- The seven canon shades have names:
-darkest,-dark,-medium-dark, the base colour,-medium-light,-lightand-lightest. They are the original hand-picked Picard-screen colours and are never changed. - The four computed shades in between have numbers only:
-10,-50,-60and-95. The canon shades have no numeric names: write--lcards-orange-dark, not--lcards-orange-20. - Not every family is a smooth ramp: blue's
-lightestis a vivid electric cyan, and yellow's-lightand-lightestturn toward parchment. These are choices in the canon palette, not slips in the computed shades.
| Shade | Tone | Origin |
|---|---|---|
-darkest | 05 | Canon: the deepest, near-black tone |
-10 | 10 | Computed: between -darkest and -dark |
-dark | 20 | Canon |
-medium-dark | 30 | Canon |
base, -medium | 40 | Canon: the core colour (--lcards-<colour>) |
-50 | 50 | Computed: between the base and -medium-light |
-60 | 60 | Computed: between the base and -medium-light |
-medium-light | 70 | Canon |
-light | 80 | Canon |
-lightest | 90 | Canon: the palest of the original seven |
-95 | 95 | Computed: beyond -lightest |
More about the computed shades
- How they were made: in OKLCH colour space, anchored to the canon shades, so that Home Assistant's colour system gets the eleven steps it expects.
scripts/generate-lcards-palette-scale.jsgenerates them. - The palest step:
-95keeps the hue and chroma of-lightestand only moves the lightness toward white, rather than fading to white, because LCARS palettes stay vivid even at their palest. - Where they are used: the HA-LCARS LCARdS theme profiles map the whole scale onto Home Assistant's
--ha-color-*tokens; see ha-css-vars.md.
HA-LCARS Theme Profiles
HA-LCARS includes two LCARdS theme profiles that use the --lcards-* palette as their single source of colour. They remap the HA-LCARS chrome variables and Home Assistant's own colour tokens (--ha-color-*), so stock Home Assistant components, LCARdS cards and the HA-LCARS chrome share one palette, alert-mode colour shifts included.























































