Skip to content

ThemeError

One reason a token set cannot be saved or published. code is unknown_token, duplicate_token, invalid_value (the value does not have the token’s shape; scheme names the color scheme of a color), out_of_range (min and max are the bounds, in rem for a length and ms for a duration), low_contrast (token on background is ratio:1 in scheme and needs minimum:1), or too_many_overrides (more than max tokens).

object
code
required
string
Allowed values: unknown_token duplicate_token invalid_value out_of_range low_contrast too_many_overrides
token
string
scheme
string
Allowed values: light dark
background
string
ratio
number
minimum
number
min
number
max
number

Example generated

{
"code": "unknown_token",
"token": "example",
"scheme": "light",
"background": "example",
"ratio": 1,
"minimum": 1,
"min": 1,
"max": 1
}

For LLMs and coding agents:llms.txt,llms-full.txt, llms-small.txt

Analytics on this site