Esc

COMARK1401 · warning

comark/badge/invalid-color

Write a badge's color as one of Nuxt UI's colors

A badge takes one of Nuxt UI's colors: primary, secondary, success, info, warning, error, or neutral. Any other value, such as red or purple, shows as primary, so a warning looks like every other badge.

Incorrect

The pond census is :badge[late]{color="red"} this year.
md
lint-comark example.mdexample.md:1:27 comark/badge/invalid-color:badge 1 ("late"): color is "red", so it shows as primary.Write one of primary, secondary, success, info, warning, error, neutral.✖ 1 problem

Correct

The pond census is :badge[late]{color="error"} this year.
md
lint-comark example.md✔ No problems