Esc

COMARK0207 · warning

comark/cards/invalid-variant

Write a card's variant as outline, soft, or subtle

A card's variant takes one of Nuxt UI's card variants: outline, the default, keeps the card plain, soft washes it in its color, and subtle washes it and draws its border in the color too. Any other value, such as solid or ghost, shows as outline, so a card meant to stand out for a failing or a passing state looks like every other card.

Incorrect

::card{title="Pond report" color="error" variant="filled"}
2 ducks missing.
::
md
lint-comark example.mdexample.md:1:1 comark/cards/invalid-variant::card 1 ("Pond report"): variant is "filled", so it shows as outline.Write one of outline, soft, subtle.✖ 1 problem

Correct

::card{title="Pond report" color="error" variant="soft"}
2 ducks missing.
::
md
lint-comark example.md✔ No problems