|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- # color-hex-case
-
- Specify lowercase or uppercase for hex colors.
-
- <!-- prettier-ignore -->
- ```css
- a { color: #fff }
- /** ↑
- * This hex color */
- ```
-
- The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
-
- ## Options
-
- `string`: `"lower"|"upper"`
-
- ### `"lower"`
-
- The following patterns are considered violations:
-
- <!-- prettier-ignore -->
- ```css
- a { color: #FFF; }
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- a { color: #000; }
- ```
-
- <!-- prettier-ignore -->
- ```css
- a { color: #fff; }
- ```
-
- ### `"upper"`
-
- The following patterns are considered violations:
-
- <!-- prettier-ignore -->
- ```css
- a { color: #fff; }
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- a { color: #000; }
- ```
-
- <!-- prettier-ignore -->
- ```css
- a { color: #FFF; }
- ```
|