Duolith docs

Errors E0500 to E0599

E0511 Override naming a token the theme does not have

Message reference names no theme 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

A part token's value may name a theme token in braces, such as {color.brand} or {radius.md}, which is filled in for each look and colour scheme when the app is built. The one named here is not in the theme.

How to fix it

Name a token the theme has, add it to theme.yaml, or write the value itself, such as 8px.

In a terminal

duolith explain E0511

Mentioned in