diff options
author | silverwind | 2022-11-23 01:22:27 +0100 |
---|---|---|
committer | GitHub | 2022-11-23 08:22:27 +0800 |
commit | ee21d5453f335e2530ba947e1896353d663525ad (patch) | |
tree | 6f393afef1ec1659f46f341f765dfe9dfeee93bf /.stylelintrc.yaml | |
parent | 68e934ab5de6a4e8bec6f3faa8bf1e05899b8fb8 (diff) |
Move all remaining colors into CSS variables (#21903)
This should eliminate all non-variable color usage in the styles, making
gitea fully themeable via CSS variables. Also, it adds a linter to
enforce variables for colors.
Diffstat (limited to '.stylelintrc.yaml')
-rw-r--r-- | .stylelintrc.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.stylelintrc.yaml b/.stylelintrc.yaml index 342bf6a4e..d51a08bf8 100644 --- a/.stylelintrc.yaml +++ b/.stylelintrc.yaml @@ -1,8 +1,19 @@ extends: stylelint-config-standard +plugins: + - stylelint-declaration-strict-value + overrides: - files: ["**/*.less"] customSyntax: postcss-less + - files: ["**/*.less"] + rules: + scale-unlimited/declaration-strict-value: [color, { + ignoreValues: /^(inherit|transparent|unset|initial)$/ + }] + - files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console/*"] + rules: + scale-unlimited/declaration-strict-value: null rules: alpha-value-notation: null |