Duolith docs

Errors E0500 to E0599

E0520 Part token given a value of another kind

Message value is not kind for part's token

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

Each kit part token takes the kind of value its default is: a length for a corner or a height, a duration, a curve, or a colour. A value of another kind, such as banana for a duration or {color.primary} for a corner, would be dropped by the browser and by Lynx, and the part would fall back to nothing. Values are checked once the tokens they name are filled in. A theme's duration, easing and shape groups are checked the same way.

How to fix it

Write a value of the token's kind, such as 8px, 120ms, ease-out or #4b5bdc, or name a theme token of that kind, such as {radius.md}.

In a terminal

duolith explain E0520

Mentioned in