All backgrounds should be either a surface or a container
--sys-color-cdt-base-container--sys-color-surface2--sys-color-cdt-base-container--sys-color-surface1--sys-color-surface-yellow--sys-color-surface-error--sys-color-cdt-base-container--sys-color-neutral-containerStates:
--sys-color-state-hover-on-subtle (see Troubleshooting > 1 for details)--sys-color-tonal-container--sys-color-state-focus-highlight--sys-color-state-focus-selectText should generally use on-surface, on-container
--sys-color-on-surface--sys-color-on-surface-subtle--sys-color-text-disabledFor warnings, errors, text on selected/focused UI elements:
--sys-color-on-surface-yellow--sys-color-on-surface-error--sys-color-on-tonal-containerSyntax highlighting should use token-something colors defined here
Regular (dark grey) icons should also use on-something colors
--sys-color-on-surface-subtle--sys-color-on-surface--sys-color-state-disabledFor colored icons, please use icon application color tokens In case you need to add a new icon application color token, reference --sys-color-something-bright
In case you can’t reuse a component and need to add some new UI element, please follow the spec
--sys-color-cdt-base-container or in case you need an opaque hover color use state layer technique. See example CL