strand

Tokens

A token is read as $path (spec.md, section 9). The palette's colour roles come from the theme's palette, and every theme fills all of them; the base tokens are valued by the theme's token sets. A theme may add tokens of its own.

Palette roles

Token
$accentThe accent colour (Material 3 primary).
$accent_containerA softer accent fill (primary_container).
$accent_fixedA fill that keeps its tone in light and dark (primary_fixed).
$accent_fixed_dimA dimmer accent_fixed (primary_fixed_dim).
$bgThe background (background).
$blueA blue that stays blue: a hue role.
$bright_blueA brighter blue.
$bright_cyanA brighter cyan.
$bright_greenA brighter green.
$bright_magentaA brighter magenta.
$bright_redA brighter red (lighter in dark palettes, darker in light).
$bright_yellowA brighter yellow.
$cyanA cyan that stays cyan: a hue role.
$errorThe error colour (error).
$error_containerA softer error fill (error_container).
$fgText and icons on surfaces (on_surface).
$fg_variantSecondary text and icons on surfaces (on_surface_variant).
$greenA green that stays green (success): a hue role.
$inverse_accentThe accent on inverse_surface (inverse_primary).
$inverse_fgText and icons on inverse_surface (inverse_on_surface).
$inverse_surfaceThe inverse surface (inverse_surface).
$magentaA magenta that stays magenta: a hue role.
$on_accentText and icons on accent (on_primary).
$on_accent_containerText and icons on accent_container (on_primary_container).
$on_accent_fixedText and icons on accent_fixed (on_primary_fixed).
$on_accent_fixed_variantLower-emphasis text on accent_fixed (on_primary_fixed_variant).
$on_bgText and icons on bg (on_background).
$on_errorText and icons on error (on_error).
$on_error_containerText and icons on error_container (on_error_container).
$on_secondaryText and icons on secondary (on_secondary).
$on_secondary_containerText and icons on secondary_container (on_secondary_container).
$on_secondary_fixedText and icons on secondary_fixed (on_secondary_fixed).
$on_secondary_fixed_variantLower-emphasis text on secondary_fixed (on_secondary_fixed_variant).
$on_tertiaryText and icons on tertiary (on_tertiary).
$on_tertiary_containerText and icons on tertiary_container (on_tertiary_container).
$on_tertiary_fixedText and icons on tertiary_fixed (on_tertiary_fixed).
$on_tertiary_fixed_variantLower-emphasis text on tertiary_fixed (on_tertiary_fixed_variant).
$orangeAn orange that stays orange: a hue role.
$outlineOutlines (outline).
$outline_variantSubtle outlines and dividers (outline_variant).
$redA red that stays red (terminal red, errors): a hue role.
$scrimThe scrim colour (scrim).
$secondaryThe secondary colour (secondary).
$secondary_containerA softer secondary fill (secondary_container).
$secondary_fixedA fill that keeps its tone in light and dark (secondary_fixed).
$secondary_fixed_dimA dimmer secondary_fixed (secondary_fixed_dim).
$shadowThe shadow colour (shadow).
$surfaceThe surface colour (surface).
$surface_brightThe brightest surface (surface_bright).
$surface_containerThe container surface (surface_container).
$surface_dimThe dimmest surface (surface_dim).
$surface_highA high container surface (surface_container_high).
$surface_highestThe highest container surface (surface_container_highest).
$surface_lowA low container surface (surface_container_low).
$surface_lowestThe lowest container surface (surface_container_lowest).
$surface_tintThe surface tint (surface_tint).
$surface_variantA variant surface (surface_variant).
$tertiaryThe tertiary colour (tertiary).
$tertiary_containerA softer tertiary fill (tertiary_container).
$tertiary_fixedA fill that keeps its tone in light and dark (tertiary_fixed).
$tertiary_fixed_dimA dimmer tertiary_fixed (tertiary_fixed_dim).
$yellowA yellow that stays yellow (warnings): a hue role.

Base tokens

TokenType
$accent.containercolorA soft accent fill, such as a selected row: $accent.alpha(0.22).
$accent.hovercolorThe accent under the pointer.
$bordercolorHairline borders: oklch(from $surface, l: l + 0.12).
$elevation.lgshadowShadows by height: md, lg, xl.
$elevation.mdshadowShadows by height: md, lg, xl.
$elevation.xlshadowShadows by height: md, lg, xl.
$fg.faintcolorFaint text, such as days outside the month: $fg.alpha(0.35).
$fg.mutedcolorSecondary text: $fg.alpha(0.65).
$font.captionfontFonts: ui for text, title, caption and mono.
$font.monofontFonts: ui for text, title, caption and mono.
$font.titlefontFonts: ui for text, title, caption and mono.
$font.uifontFonts: ui for text, title, caption and mono.
$motion.bouncySpringSprings: spatial for movement and size, effects for colour and opacity, bouncy for play.
$motion.effectsSpringSprings: spatial for movement and size, effects for colour and opacity, bouncy for play.
$motion.spatialSpringSprings: spatial for movement and size, effects for colour and opacity, bouncy for play.
$radius.fulllengthCorner radii, smallest to largest, and full for pills.
$radius.lglengthCorner radii, smallest to largest, and full for pills.
$radius.mdlengthCorner radii, smallest to largest, and full for pills.
$radius.smlengthCorner radii, smallest to largest, and full for pills.
$radius.xllengthCorner radii, smallest to largest, and full for pills.
$space.1lengthThe spacing scale, smallest to largest: $space.1 to $space.4.
$space.2lengthThe spacing scale, smallest to largest: $space.1 to $space.4.
$space.3lengthThe spacing scale, smallest to largest: $space.1 to $space.4.
$space.4lengthThe spacing scale, smallest to largest: $space.1 to $space.4.
$surface.hicolorA raised surface, such as under the pointer: $surface.mix($fg, 8%).

This page as Markdownllms.txt