Esc

COMARK3804 · warning

comark/colors/invalid-color

Write palette colors in a form it can draw

A palette draws hex, rgb(), hsl(), hwb(), lab(), lch(), oklab(), and oklch() colors. It doesn't read named colors such as teal, or var() and color-mix(), whose color depends on the page, so a line with one of those is left out.

Incorrect

::palette
- Pond blue: #3b82f6
- Pigeon gray: slategray
::
md
lint-comark example.mdexample.md:1:1 comark/colors/invalid-color::palette 1: "slategray" for Pigeon gray isn't a color it can draw.Write a hex color or an rgb(), hsl(), hwb(), lab(), lch(), oklab(), or oklch() color.✖ 1 problem

Correct

::palette
- Pond blue: #3b82f6
- Pigeon gray: #708090
::
md
lint-comark example.md✔ No problems