Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Reference Guide

WIP: currently undergoing some work on this…

Colour

The following Material colour roles are accessible through the CSS variables var(--md-sys-color-*):

M3 Colour Roles

Brand presence colour roles

The following brand presence colour roles are accessible through the CSS variables var(--brand-presence-*):

StatusCSS-VariableHex-Code
Onlinevar(--brand-presence-online)#3ABF7E
Idlevar(--brand-presence-idle)#F39F00
Busyvar(--brand-presence-busy)#F84848
Focusvar(--brand-presence-focus)#4799F0
Invisiblevar(--brand-presence-invisible)#A5A5A5

Roundness

Border radius values are provided as var(--borderRadius-none|xs|sm|md|lg|li|xl|xli|xxl|full|circle), these correspond to the corner radius scale in Material 3 expressive design.

Learn more here about how to apply the scale: https://m3.material.io/styles/shape/corner-radius-scale

Gaps

Gap values are provided as var(--gap-none|xxs|xs|s|sm|md|lg|x|xl|xxl)

Fonts

Font values are provided by:

  • Primary: var(--fonts-primary)
  • Monospace: var(--fonts-monospace)

Typography

Typography tokens are currently fixed.

Elevation

Components can use elevation to depict different degrees of importance and separation.

Usually, this is implemented by:

  • Using the scrim colour role on a background surface (see Colour)
  • Or adding a drop shadow to the component

Currently, our theme system only provides elevation tokens for drop shadows, while scrims uses different levels of opacity (not tokenized.)

Drop shadow tokens are available as var(--md-sys-elevation-<level>), where <level> is a number from 0 (lowest resting point, no drop shadow) to 5 (highest resting point).

The Material Design website has guidance on when to use drop shadows for elevation: https://m3.material.io/styles/elevation/overview

Transitions

Two transition speeds are specified (in format, <time> <easing>):

  • Fast: var(--transitions-fast)
  • Medium: var(--transitions-medium)