Semantic tokens

Semantic tokens are the public design keys that a host application can override through SET_CONFIG. Use these keys inside payload.design; do not target component internals or generated CSS classes.

The values in this page reflect the current mas-consents implementation in design-tokens. When a host overrides a semantic color, the value can be a primitive color key or a valid CSS color string.

Color tokens

Color tokens control component backgrounds, text, icons and borders. The runtime has light and dark defaults.

TokenUsageLight defaultDark default
background-neutral-primaryMain component backgroundcolors-slate-50     #F9FAFCcolors-slate-950     #0C0F18
background-surface-defaultSurface background for cards and panelscolors-common-white     #FFFFFFcolors-neutral-900     #1A2330
background-button-defaultPrimary button backgroundcolors-blue-800     #3466F5colors-blue-800     #3466F5
background-button-hoverPrimary button hover backgroundcolors-blue-900     #1467EBcolors-blue-900     #1467EB
background-button-pressedPrimary button pressed backgroundcolors-blue-950     #003EB7colors-blue-950     #003EB7
background-semantic-critical-primaryError and validation alert backgroundcolors-red-50     #FFF5F4colors-red-900     #A62319
text-neutral-primaryMain textcolors-neutral-950     #111827colors-neutral-300     #D1D5DB
text-neutral-secondarySecondary textcolors-neutral-600     #4B5563colors-red-700     #BF2828
text-button-inverseText on primary buttoncolors-common-white     #FFFFFFcolors-common-white     #FFFFFF
text-semantic-critical-primaryError textcolors-red-700     #BF2828colors-red-50     #FFF5F4
icon-neutral-primaryPrimary iconscolors-neutral-950     #111827colors-neutral-300     #D1D5DB
icon-neutral-secondarySecondary icons and unchecked controlscolors-neutral-500     #6B7280colors-neutral-400     #9CA3AF
icon-button-primaryChecked controls and button-related iconscolors-blue-800     #3466F5colors-blue-800     #3466F5
icon-semantic-critical-primaryError iconscolors-red-700     #BF2828colors-red-50     #FFF5F4
border-neutral-primaryMain borderscolors-neutral-300     #D1D5DBcolors-neutral-700     #374151
border-neutral-secondarySecondary borders and dividerscolors-neutral-200     #E5E7EBcolors-neutral-600     #4B5563

Typography tokens

Typography tokens define the font family, size, weight, line height and letter spacing for the text styles consumed by the component. The runtime effectively uses two responsive groups: xs for mobile and xl for every non-mobile case.

Token groupXL valuesXS valuesUsage
typography-baseInterInterBase family applied to typography tokens unless a specific family is overridden
headings-h424px, 700, 42px, -0.12px20px, 600, 32px, -0.10pxMain screen heading
headings-h618px, 600, 28px, -0.20px18px, 600, 28px, -0.20pxInformation dialog heading
base-regular14px, 400, 22px, 014px, 400, 22px, 0Body descriptions and secondary statement text
base-medium14px, 500, 22px, 014px, 500, 22px, 0Nested statement labels and CTA text
body-medium16px, 500, 28px, 016px, 500, 28px, 0Root statement labels

Spacing tokens

Spacing tokens control margins, paddings, gaps and some fixed component sizes. When a token inherits from another token, overriding the parent also updates the child unless the child is overridden explicitly.

TokenDefaultInherits from
spacing-global-padding-xspacing-400 (16px)-
spacing-global-padding-yspacing-400 (16px)-
spacing-statement-vertical-gapspacing-400 (16px)-
spacing-section-gapspacing-0 (0px)-
spacing-statement-box-gapspacing-300 (12px)-
spacing-statement-box-padding-xspacing-300 (12px)-
spacing-header-padding-xspacing-500 (20px)spacing-global-padding-x + 4px
spacing-header-padding-topspacing-800 (32px)spacing-global-padding-y + 16px
spacing-header-padding-bottomspacing-500 (20px)spacing-global-padding-y + 4px
spacing-header-content-gapspacing-400 (16px)-
spacing-statement-parent-padding-xspacing-400 (16px)spacing-global-padding-x
spacing-statement-parent-padding-yspacing-400 (16px)spacing-global-padding-y
spacing-statement-parent-vertical-gapspacing-400 (16px)spacing-statement-vertical-gap
spacing-statement-child-padding-xspacing-400 (16px)spacing-global-padding-x
spacing-statement-child-padding-yspacing-400 (16px)spacing-global-padding-y
spacing-statement-child-vertical-gapspacing-400 (16px)spacing-statement-vertical-gap
spacing-statement-child-indentspacing-800 (32px)-
spacing-footer-padding-xspacing-800 (32px)spacing-global-padding-x + 16px
spacing-footer-padding-yspacing-800 (32px)spacing-global-padding-y + 16px
spacing-footer-section-gapspacing-800 (32px)-
spacing-alert-padding-xspacing-400 (16px)-
spacing-alert-padding-yspacing-300 (12px)-
spacing-button-desktop-padding-xspacing-1400 (56px)-
spacing-button-padding-yspacing-300 (12px)-
spacing-dialog-paddingspacing-800 (32px)-
spacing-dialog-padding-xspacing-800 (32px)spacing-dialog-padding
spacing-dialog-padding-yspacing-800 (32px)spacing-dialog-padding
spacing-dialog-section-gapspacing-800 (32px)-
spacing-dialog-header-gapspacing-400 (16px)-
spacing-dialog-offsetspacing-400 (16px)-
spacing-language-selector-gapspacing-200 (8px)-
spacing-statement-help-icon-sizespacing-500 (20px)-

Radius tokens

radius-global propagates to all radius tokens unless the specific token is also overridden.

TokenDefaultUsage
radius-globalradius-md (8px)Global radius source for component tokens
radius-buttonradius-md (8px)CTA button radius
radius-statement-boxradius-md (8px)Statement card radius in boxed mode
radius-menuradius-md (8px)Language selector menu radius
radius-alertradius-md (8px)Validation alert radius
radius-dialogradius-md (8px)Information dialog panel radius

Shadow tokens

TokenLight defaultDark defaultUsage
shadow-statement-boxshadow-3 (0px 0px 8px 0px #64748b24)shadow-3 (0px 0px 8px 0px #00000099)Statement cards in boxed mode
shadow-language-selector-menushadow-3 (0px 0px 8px 0px #64748b24)shadow-3 (0px 0px 8px 0px #00000099)Language selector dropdown
shadow-dialogshadow-0 (none)shadow-0 (none)Information dialog

Border width tokens

TokenDefaultUsage
border-statement-boxstroke-100 (1px)Statement card border in boxed mode
border-containerstroke-100 (1px)Global container border in flat mode

Validation

The current validation rules and limits are documented in Token validations.