Tokens
Tokens grouped by the first segment of their path. A value labelled with a context applies only in that context.
Values vary by: theme (light, dark; default light)
button
| Token | Type | Value | Description |
|---|---|---|---|
button.border |
dimension |
|
|
button.gap |
dimension |
|
Icon-label gap, A11 `$aui-button-icon-margin: 8` (_button.scss:3, 252). |
button.height |
dimension |
|
Height of the A11 box, derived: 13 + 24 + 12 plus a 1 px border on each side = 51. |
button.icon |
dimension |
|
A11 small icon size `$aui-icon-size-small: 24px` (_variables.scss:62); the icon-and-label button snippets use small icons (button/snippets/button-primary-with-icon.html). Equals one label line. |
button.min-width |
dimension |
|
Primary and secondary: nine times the base type size (A5), 144 at the 16 px base. |
button.min-width-text |
dimension |
|
Text button: no minimum width; A5 defines one for primary and secondary buttons only. |
button.padding-bottom |
dimension |
|
A11 `em(12, 15)` (_button.scss:13). |
button.padding-inline |
dimension |
|
Primary and secondary: A11 `em(32, 15)` (_button.scss:63-68). |
button.padding-inline-text |
dimension |
|
Text button: no horizontal padding, A11 `padding: em(13) 0 em(12)` (_button.scss:13); the 32 px of _button.scss:63-68 apply to primary, secondary and padded buttons only. |
button.padding-top |
dimension |
|
A11 `em(13, 15)` (_button.scss:13). |
checkbox
| Token | Type | Value | Description |
|---|---|---|---|
checkbox.border |
dimension |
|
A11 _checkbox.scss:37. |
checkbox.box |
dimension |
|
1.5em (A11 _checkbox.scss:1, 35-36). |
checkbox.gap |
dimension |
|
Box-label gap, 1em (A11 _checkbox.scss:3, 21). |
checkbox.tick |
dimension |
|
0.75em (A11 _checkbox.scss:2, 53-54). |
color
| Token | Type | Value | Description |
|---|---|---|---|
color.checkbox.border |
color |
|
A11 _checkbox.scss:6, 37. |
color.checkbox.border-hover |
color |
|
A11 _checkbox.scss:7, 109-115. |
color.checkbox.label |
color |
|
A11 _checkbox.scss:4, 16. |
color.checkbox.label-hover |
color |
|
A11 _checkbox.scss:5, 109-110. |
color.checkbox.tick |
color |
|
The tick takes the resting label colour, A11 _checkbox.scss:9, 56. |
color.focus |
color |
|
Focus glow colour, A11 `shadow-focus` (_mixins.scss:81-83). |
color.on-surface |
color |
|
A4: typography in black or white. |
color.primary.background |
color |
|
A11 _button.scss:11, 110-115. |
color.primary.background-hover |
color |
|
Hover and press, A11 _button.scss:12, 86-91. |
color.primary.foreground |
color |
|
A11 _button.scss:8, 93-101. |
color.primary.foreground-disabled |
color |
|
Disabled label, under the disabled opacity: A11 _button.scss:103-108. |
color.secondary.border |
color |
|
A11 _button.scss:9, 125-129. |
color.secondary.border-hover |
color |
|
Hover and press, A11 _button.scss:10, 118-123. |
color.secondary.foreground |
color |
|
A11 _button.scss:6, 43-51. |
color.secondary.foreground-hover |
color |
|
Hover and press, A11 _button.scss:7, 15-23. |
color.signal.negative |
color |
|
|
color.signal.positive |
color |
|
|
color.signal.warning |
color |
|
|
color.surface |
color |
|
A1: black and dark components are placed on white. |
font
| Token | Type | Value | Description |
|---|---|---|---|
font.family |
fontFamily |
|
Names only, nothing bundled. Buttons, text buttons and interactive text elements use Audi Type Wide (A4; A5: button labels in "Audi Type Wide Normal"); Verdana is the fallback (A4); `sans-serif` ends the A11 stack (_variables.scss:50). |
font.line-height.control |
dimension |
|
Button line height, A11 `unit(6)` = 6 x 4 px (_button.scss:34, _variables.scss:2). |
font.size.base |
dimension |
|
Base type size on the smallest viewport (A1, A5); also the A11 root and checkbox size (typography/_typography.scss:2, _variables.scss:12). The 18 and 20 px steps need viewport breakpoints that A1 does not give. |
font.size.base-large |
dimension |
|
Base type size, large viewport (A1). |
font.size.base-medium |
dimension |
|
Base type size, medium viewport (A1). |
font.size.control |
dimension |
|
Button font size, A11 `$aui-button-font-size: 15` (_button.scss:1, 32) at the 16 px root. |
font.weight.normal |
fontWeight |
|
A11 `$aui-font-weight-normal` (_variables.scss:53), set on the button (_button.scss:33) and the checkbox (_checkbox.scss:14); A5 names the button weight "Normal". |
motion
| Token | Type | Value | Description |
|---|---|---|---|
motion.duration.button |
duration |
|
Button transition, A11 `all 0.3s` (_button.scss:39). |
motion.duration.checkbox |
duration |
|
Checkbox box transition, A11 `.15s` (_checkbox.scss:38). |
motion.duration.instant |
duration |
|
Choice: reduced motion keeps the end state without animation. |
motion.easing |
cubicBezier |
|
Brand easing curve (A3; also A11 `$aui-easing`, _variables.scss:17). |
motion.easing-linear |
cubicBezier |
|
CSS `linear`, the checkbox box easing of A11 (_checkbox.scss:38), written as the equivalent cubic Bezier. |
motion.transition.button |
transition |
|
A11 `transition: all 0.3s $aui-easing` (_button.scss:39). |
motion.transition.checkbox |
transition |
|
A11 `box-shadow .15s linear, border .15s linear` (_checkbox.scss:38). |
motion.transition.instant |
transition |
|
Choice: reduced motion. |
opacity
| Token | Type | Value | Description |
|---|---|---|---|
opacity.disabled |
number |
|
Disabled button (A11 _button.scss:56) and checkbox (`$aui-field-disabled-opacity`, _variables.scss:97, _checkbox.scss:124). |
palette
| Token | Type | Value | Description |
|---|---|---|---|
palette.black |
color |
|
|
palette.grey-10 |
color |
|
|
palette.grey-15 |
color |
|
|
palette.grey-20 |
color |
|
|
palette.grey-30 |
color |
|
30 % black (A2). |
palette.grey-40 |
color |
|
|
palette.grey-5 |
color |
|
5 % black (A2). |
palette.grey-50 |
color |
|
|
palette.grey-60 |
color |
|
|
palette.grey-70 |
color |
|
|
palette.grey-80 |
color |
|
|
palette.grey-90 |
color |
|
90 % black (A2). |
palette.progressive-red |
color |
|
Brand colour only (A2): not used in UI components, so no component references it. |
palette.signal.green-dark |
color |
|
|
palette.signal.green-light |
color |
|
|
palette.signal.red-dark |
color |
|
|
palette.signal.red-light |
color |
|
|
palette.signal.yellow-dark |
color |
|
|
palette.signal.yellow-light |
color |
|
|
palette.transparent |
color |
|
Not an Audi colour: CSS `transparent` (rgba(0, 0, 0, 0)), the button fill and border colour of A11 (_button.scss:49-50). |
palette.white |
color |
|
radius
| Token | Type | Value | Description |
|---|---|---|---|
radius.none |
dimension |
|
Square corners: A11 sets no radius on the button (except `--round`) or the checkbox. |
shadow
| Token | Type | Value | Description |
|---|---|---|---|
shadow.focus |
shadow |
|
Focus glow 0 0 3px 3px, A11 `shadow-focus` (_mixins.scss:81-83). |
shadow.none |
shadow | ||
shadow.surface |
shadow |
|
UI shadow (A1). |
space
| Token | Type | Value | Description |
|---|---|---|---|
space.button-group |
dimension |
|
Gap between grouped buttons: 0.25 rem (A5; also A11 `unit()`, _button-group.scss:2), computed at the 16 px root because the generators do not support rem tokens. |
space.page-margin.l |
dimension |
|
|
space.page-margin.m |
dimension |
|
|
space.page-margin.s |
dimension |
|
|
space.page-margin.xl |
dimension |
|
|
space.page-margin.xs |
dimension |
|
stroke
| Token | Type | Value | Description |
|---|---|---|---|
stroke.thin |
dimension |
|
Button and checkbox border width, A11 (_button.scss:49, _checkbox.scss:37). |
type
| Token | Type | Value | Description |
|---|---|---|---|
type.checkbox-label |
typography |
|
Checkbox label: weight 400 and line height 1.5 (A11 _checkbox.scss:14-15, _variables.scss:94) at the inherited 16 px size, so the 24 px line equals the box. Letter spacing 0 is a choice, as for the button. |
type.control |
typography |
|
Button label: 15 px on a 24 px line, weight 400 (A11). The line height is computed, never restated. A11 sets no letter spacing (CSS `normal`); 0 is a choice. |