Duolith docs

Errors E0200 to E0299

E0208 Colour mix the build cannot work out

Message the color-mix() in `declaration` cannot be worked out for iOS and Android

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

Why

Lynx has no color-mix(), so the native build mixes each one at build time, for light and for dark. It can read theme colours (var(--color-…)), hex colours, named colours and transparent, in srgb or oklab. A mix of another custom property, or in another colour space, would be dropped by Lynx without a word, so it is an error (decision 0049).

How to fix it

Mix theme, hex or named colours in srgb or oklab, such as color-mix(in srgb, var(--color-primary) 15%, var(--color-surface)).

In a terminal

duolith explain E0208

Mentioned in