E0510 Override of a variant a part does not have
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 variant's tokens, such as a primary button's background, are overridden by the variant's value under variants:. The part's specification lists them under look.variants.
How to fix it
Use one of the variants the message lists, such as primary.
In a terminal
duolith explain E0510