# stylus/color-hex-case
enforce lowercase or uppercase for hex colors.
- ⚙️ This rule is included in
"stylelint-plugin-stylus/standard"
. (options:"lower"
) - 🔧 The fix option (opens new window) 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 (opens new window) 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 (opens new window) AST.
The stylus/color-hex-case
rule understands postcss-styl (opens new window) AST.
# 🔧 Options
See stylelint - color-hex-case - Options (opens new window).