Checked properties
The use-design-tokens rule checks every property below. The sections are the
property types in
config.mjs,
and a property listed under several types accepts a value that any of them
accepts. Where two of a property’s types fix the same value, the first type in
its validTypes wins.
Every checked property also accepts inherit, initial, revert, revert-layer and unset.
Background attachment
Properties:
backgroundNon-token values:
scroll,fixed,local
Background clip
Properties:
backgroundNon-token values:
border-box,padding-box,content-box
Background color
Properties:
background-color,backgroundToken categories:
background-colorOther tokens:
--dragover-tab-group-color-invert,--dragover-tab-group-color-pale,--dragover-tab-group-color,--fc-accent-color,--fc-background,--fc-button-background-active,--fc-button-background-hover,--fc-button-background,--fc-dismiss-button-background-active,--fc-dismiss-button-background-hover,--fc-dismiss-button-background,--fc-primary-button-background-active,--fc-primary-button-background-hover,--fc-primary-button-background,--fxview-background-color-secondary,--fxview-element-background-active,--fxview-element-background-hover,--fxviewtabrow-element-background-active,--fxviewtabrow-element-background-hover,--identity-color,--identity-tab-color,--lwt-accent-color,--newtab-background-card,--newtab-background-color-secondary,--newtab-background-color,--newtab-button-active-background,--newtab-button-background,--newtab-button-focus-background,--newtab-button-hover-background,--newtab-button-secondary-color,--newtab-button-static-active-background,--newtab-button-static-background,--newtab-button-static-focus-background,--newtab-button-static-hover-background,--newtab-element-active-color,--newtab-element-hover-color,--newtab-element-secondary-active-color,--newtab-element-secondary-color,--newtab-element-secondary-hover-color,--newtab-overlay-color,--newtab-primary-action-background-pocket,--newtab-primary-action-background,--newtab-primary-element-active-color,--newtab-primary-element-hover-color,--newtab-primary-element-hover-pocket-color,--newtab-status-error,--newtab-text-primary-color,--newtab-text-secondary-color,--newtab-weather-background-color,--sidebar-background-color,--sidebar-box-background,--tab-group-color-invert,--tab-group-color-pale,--tab-group-color,--tab-group-background-color,--tab-group-text-color,--tab-group-background-color-hover,--tab-icon-fill-loading,--tabgroup-swatch-color-invert,--tabgroup-swatch-color,--toolbar-background-color,--toolbarbutton-background-color-active,--toolbarbutton-background-color-hover,--toolbox-background-color-inactive,--toolbox-background-color,--urlbar-box-background-color,--urlbar-box-background-color-focus,--urlbar-box-background-color-hover,--urlbar-box-background-color-active,--urlbarview-background-color-hover,--urlbarview-background-color-selected,--urlbarview-result-button-hover-background-color,--urlbarview-result-button-selected-background-color,--color-accent-primary,--color-accent-primary-hover,--color-accent-primary-active,--color-accent-primary-selected,--color-accent-attentionNon-token values:
transparent,currentColor,auto,normal,none,white,blackOnly through a local custom property: tokens in
color,text-color,border-color,icon-color; system colorsSystem colors: a warning, not an error, when they are the whole value or when the tokens that
customSuggestionsmaps them to give a valid value in their placeAutofix:
Value
Fixed to
#000black#000000black#fffwhite#ffffffwhite
Background image
Properties:
backgroundNon-token values:
noneFunctions:
url(),linear-gradient(),radial-gradient(),conic-gradient(),repeating-linear-gradient(),repeating-radial-gradient(),repeating-conic-gradient(),image-set()
Background position
Properties:
background,background-position,background-position-x,background-position-yToken categories:
size,spaceNon-token values:
0,top,bottom,left,right,centerUnits: any unit
Background repeat
Properties:
backgroundNon-token values:
repeat,repeat-x,repeat-y,no-repeat,space,round
Background size
Properties:
background,background-sizeToken categories:
size,space,icon-sizeNon-token values:
auto,cover,containFunctions:
max()Units: any unit
Border color
Properties:
border,border-color,border-block,border-block-color,border-block-end,border-block-end-color,border-block-start,border-block-start-color,border-bottom,border-bottom-color,border-inline,border-inline-color,border-inline-end,border-inline-end-color,border-inline-start,border-inline-start-color,border-left,border-left-color,border-right,border-right-color,border-top,border-top-color,outline,outline-colorToken categories:
border-color,border,outline-color,outlineOther tokens:
--color-accent-primary,--color-accent-primary-hover,--color-accent-primary-active,--color-accent-primary-selected,--color-accent-attention,--panel-separator-colorNon-token values:
transparent,currentColor,white,black,auto,normal,none,0Only through a local custom property: tokens in
color,background-color,text-color; system colorsSystem colors: a warning, not an error, when they are the whole value or when the tokens that
customSuggestionsmaps them to give a valid value in their placeAutofix:
Value
Fixed to
#000black#000000black#fffwhite#ffffffwhite
Border radius
Properties:
border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-start-start-radius,border-start-end-radius,border-end-start-radius,border-end-end-radiusToken categories:
border-radiusNon-token values:
0Autofix:
Value
Fixed to
9999pxvar(--border-radius-circle)2pxvar(--border-radius-xsmall)4pxvar(--border-radius-small)8pxvar(--border-radius-medium)16pxvar(--border-radius-large)50%var(--border-radius-circle)100%var(--border-radius-circle)1000pxvar(--border-radius-circle)
Border style
Properties:
border,border-block,border-block-end,border-block-start,border-bottom,border-inline,border-inline-end,border-inline-start,border-left,border-right,border-top,outlineOther tokens:
--default-focusringNon-token values:
solid,dashed,dotted,double,groove,ridge,inset,outset,none,hidden
Border width
Properties:
border,border-width,border-block,border-block-width,border-block-end,border-block-end-width,border-block-start,border-block-start-width,border-bottom,border-bottom-width,border-inline,border-inline-width,border-inline-end,border-inline-end-width,border-inline-start,border-inline-start-width,border-left,border-left-width,border-right,border-right-width,border-top,border-top-width,outline,outline-widthToken categories:
border-width,outline-width,outlineNon-token values:
0Units: any unit
Box shadow
Properties:
box-shadowToken categories:
box-shadowNon-token values:
none
Fill
Properties:
fillToken categories:
icon-colorOther tokens:
--color-accent-primary,--color-accent-primary-hover,--color-accent-primary-active,--color-accent-primary-selected,--color-accent-attentionNon-token values:
none,context-fill,context-stroke,currentColor,transparent,white,blackFunctions:
url()Only through a local custom property: tokens in
color,background-color,border-color,text-color,outlineAutofix:
Value
Fixed to
#000black#000000black#fffwhite#ffffffwhite
Flex basis
Properties:
flex-basisToken categories:
size,icon-sizeNon-token values:
auto,fit-content,min-content,max-contentUnits:
%
Flex shorthand
Properties:
flexToken categories:
size,icon-sizeNon-token values:
none,0,1,2,3,4,100,1000,10000,auto,fit-content,min-content,max-contentUnits:
%
Font size
Properties:
font-sizeToken categories:
font-sizeNon-token values:
xx-small,x-small,small,medium,large,x-large,xx-large,xxx-large,smaller,larger,1em
Font weight
Properties:
font-weightToken categories:
font-weightNon-token values:
normalAutofix:
Value
Fixed to
200normal300normal400normal500var(--font-weight-semibold)510var(--font-weight-semibold)600var(--font-weight-semibold)700var(--font-weight-bold)800var(--font-weight-bold)lighternormalboldvar(--font-weight-bold)boldervar(--font-weight-bold)
Opacity
Properties:
opacityToken categories:
opacityNon-token values:
0,1
Size
Properties:
width,min-width,max-width,height,min-height,max-height,inline-size,min-inline-size,max-inline-size,block-size,min-block-size,max-block-size,inset,inset-block,inset-block-end,inset-block-start,inset-inline,inset-inline-end,inset-inline-start,left,right,top,bottomToken categories:
size,icon-sizeOther tokens:
--downloads-item-height,--menu-panel-width-wide,--panel-and-palette-icon-sizeNon-token values:
0,1px,auto,none,fit-content,min-content,max-content,stretch,-moz-availableFunctions:
max()Units:
%,ch,em,vh,vwAutofix:
Value
Fixed to
40pxvar(--size-image-xsmall)48pxvar(--size-item-xlarge)56pxvar(--size-image-medium)64pxvar(--size-image-large)80pxvar(--size-image-xlarge)96pxvar(--size-image-xxlarge)12pxvar(--size-item-xsmall)16pxvar(--size-item-small)24pxvar(--size-item-medium)32pxvar(--size-item-large)100pxvar(--size-layout-xsmall)200pxvar(--size-layout-small)300pxvar(--size-layout-medium)400pxvar(--size-layout-large)500pxvar(--size-layout-xlarge)280pxvar(--size-sidebar)118pxvar(--size-sidebar-narrow)20pxvar(--icon-size-medium)0.75remvar(--size-item-xsmall)1remvar(--size-item-small)1.5remvar(--size-item-medium)2remvar(--size-item-large)3remvar(--size-item-xlarge)
Space
Properties:
border-spacing,margin,margin-block,margin-block-end,margin-block-start,margin-inline,margin-inline-end,margin-inline-start,margin-top,margin-right,margin-bottom,margin-left,padding,padding-block,padding-block-end,padding-block-start,padding-inline,padding-inline-end,padding-inline-start,padding-top,padding-right,padding-bottom,padding-left,gap,grid-gap,column-gap,row-gap,grid-column-gap,grid-row-gap,inset,inset-block,inset-block-end,inset-block-start,inset-inline,inset-inline-end,inset-inline-start,left,right,top,bottom,scroll-margin,scroll-margin-block,scroll-margin-block-end,scroll-margin-block-start,scroll-margin-bottom,scroll-margin-inline,scroll-margin-inline-end,scroll-margin-inline-start,scroll-margin-left,scroll-margin-right,scroll-margin-top,scroll-padding,scroll-padding-block,scroll-padding-block-end,scroll-padding-block-start,scroll-padding-bottom,scroll-padding-inline,scroll-padding-inline-end,scroll-padding-inline-start,scroll-padding-left,scroll-padding-right,scroll-padding-topToken categories:
spaceNon-token values:
-1px,0,1px,autoUnits:
ch,em,lhAutofix:
Value
Fixed to
2pxvar(--space-xxsmall)4pxvar(--space-xsmall)8pxvar(--space-small)12pxvar(--space-medium)16pxvar(--space-large)24pxvar(--space-xlarge)32pxvar(--space-xxlarge)
Stroke
Properties:
strokeToken categories:
icon-colorOther tokens:
--color-accent-primary,--color-accent-primary-hover,--color-accent-primary-active,--color-accent-primary-selected,--color-accent-attentionNon-token values:
none,context-stroke,currentColor,transparent,white,blackFunctions:
url()Only through a local custom property: tokens in
color,background-color,border-color,text-color,outlineAutofix:
Value
Fixed to
#000black#000000black#fffwhite#ffffffwhite
Text color
Properties:
colorToken categories:
text-color,icon-colorOther tokens:
--color-accent-primary,--color-accent-primary-hover,--color-accent-primary-active,--color-accent-primary-selected,--color-accent-attention,--toolbarseparator-colorNon-token values:
currentColor,white,blackOnly through a local custom property: tokens in
color,background-color,border-color; system colorsSystem colors: a warning, not an error, when they are the whole value or when the tokens that
customSuggestionsmaps them to give a valid value in their placeAutofix:
Value
Fixed to
#000black#000000black#fffwhite#ffffffwhite