Skip to content

stylelint/rules/colors ​

on save: the property order, the Prettier formatting (never disabled); warning = a choice to justify (disabled for one line, with a reason). Notations are free. Colors: notations, named colors, invalid hex, color functions.

14 rules, 2 on. Source: lint/stylelint/rules/colors.mjs.

RuleSettingFilesWhat it checksWhy
alpha-value-notationoffSCSS—Off: a notation choice, not a mistake.
color-function-alias-notationoffSCSS—Off: a notation choice, not a mistake.
color-function-notationoffSCSS—Off: a notation choice, not a mistake.
color-hex-alphaoffSCSS——
color-hex-lengthoffSCSS—Off: a notation choice, not a mistake.
color-namedwarning, "never"SCSS—Custom: colors come from variables or custom properties, not red.
color-no-hexoffSCSS——
color-no-invalid-hexerrorSCSS——
function-url-no-scheme-relativeoffSCSS——
function-url-quotesoffSCSS—Off: a notation choice, not a mistake.
function-url-scheme-allowed-listoffSCSS——
function-url-scheme-disallowed-listoffSCSS——
hue-degree-notationoffSCSS—Off: a notation choice, not a mistake.
lightness-notationoffSCSS—Off: a notation choice, not a mistake.

Generated from the JSDoc of the sources.