Skip to content

stylus/color-hex-case

enforce lowercase or uppercase for hex colors.

  • ⚙️ This rule is included in "stylelint-stylus/standard". (options: "lower")
  • 🔧 The fix option can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule enforce lowercase or uppercase for hex colors.

❓ Why Not Use stylelint Rule

The color-hex-case rule correctly report errors in Stylus, but breaks the syntax in autofix.
This problem is that the core rules do not understand the postcss-styl AST.
The stylus/color-hex-case rule understands postcss-styl AST.

🔧 Options

See stylelint - color-hex-case - Options.

🔍 Implementation