v0.6.3

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-primaryBackground for the Screen and Containercolors-slate-50     #F9FAFCcolors-slate-950     #0C0F18
background-surface-defaultSurface background for Header, Footer, Statement card, Language menu and Information Dialogcolors-common-white     #FFFFFFcolors-neutral-900     #1A2330
background-button-defaultDefault background for the CTA buttoncolors-blue-800     #3466F5colors-blue-800     #3466F5
background-button-hoverHover background for the CTA buttoncolors-blue-900     #1467EBcolors-blue-900     #1467EB
background-button-pressedPressed background for the CTA buttoncolors-blue-950     #003EB7colors-blue-950     #003EB7
background-semantic-critical-primaryBackground for the Validation alertcolors-red-50     #FFF5F4colors-red-900     #A62319
text-neutral-primaryText color for Title, Header description, Statement text and Statement descriptioncolors-neutral-950     #111827colors-neutral-300     #D1D5DB
text-neutral-secondarySecondary text color for supporting content inside the Containercolors-neutral-600     #4B5563colors-red-700     #BF2828
text-button-inverseText color for the CTA buttoncolors-common-white     #FFFFFFcolors-common-white     #FFFFFF
text-semantic-critical-primaryText color for the Validation alertcolors-red-700     #BF2828colors-red-50     #FFF5F4
icon-neutral-primaryIcon color for the Expand button and Language selectorcolors-neutral-950     #111827colors-neutral-300     #D1D5DB
icon-neutral-secondaryIcon color for the Help icon and inactive Selection controlcolors-neutral-500     #6B7280colors-neutral-400     #9CA3AF
icon-button-primaryIcon color for active Selection control and button-related iconscolors-blue-800     #3466F5colors-blue-800     #3466F5
icon-semantic-critical-primaryIcon color for the Validation alertcolors-red-700     #BF2828colors-red-50     #FFF5F4
border-neutral-primaryBorder color for the Statement cardcolors-neutral-300     #D1D5DBcolors-neutral-700     #374151
border-neutral-secondaryBorder color for the Container and dividers between Parent statement and Child statementcolors-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 font family for text inside the Container
headings-h424px, 700, 42px, -0.12px20px, 600, 32px, -0.10pxTitle
headings-h618px, 600, 28px, -0.20px18px, 600, 28px, -0.20pxHeading text inside the Information Dialog
base-regular14px, 400, 22px, 014px, 400, 22px, 0Header description, Statement description and Information Dialog text
base-medium14px, 500, 22px, 014px, 500, 22px, 0Child statement text and CTA button text
body-medium16px, 500, 28px, 016px, 500, 28px, 0Parent statement and Statement text

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 CTA button, Statement card, Language menu and Information Dialog
radius-buttonradius-md (8px)Radius for the CTA button
radius-statement-boxradius-md (8px)Radius for the Statement card in boxed mode
radius-menuradius-md (8px)Radius for the Language menu
radius-alertradius-md (8px)Radius for the Validation alert
radius-dialogradius-md (8px)Radius for the Information Dialog

Shadow tokens

TokenLight defaultDark defaultUsage
shadow-statement-boxshadow-3 (0px 0px 8px 0px #64748b24)shadow-3 (0px 0px 8px 0px #00000099)Shadow for the Statement card
shadow-language-selector-menushadow-3 (0px 0px 8px 0px #64748b24)shadow-3 (0px 0px 8px 0px #00000099)Shadow for the Language menu
shadow-dialogshadow-0 (none)shadow-0 (none)Shadow for the Information Dialog

Border width tokens

TokenDefaultUsage
border-statement-boxstroke-100 (1px)Border width for the Statement card
border-containerstroke-100 (1px)Border width for the Container in flat mode

Validation

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