aboutsummaryrefslogtreecommitdiffstats
path: root/.stylelintrc.yaml
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-11-23 01:22:27 +0100
committerGitHub <noreply@github.com>2022-11-23 08:22:27 +0800
commitee21d5453f335e2530ba947e1896353d663525ad (patch)
tree6f393afef1ec1659f46f341f765dfe9dfeee93bf /.stylelintrc.yaml
parent68e934ab5de6a4e8bec6f3faa8bf1e05899b8fb8 (diff)
downloadgitea-ee21d5453f335e2530ba947e1896353d663525ad.tar.gz
gitea-ee21d5453f335e2530ba947e1896353d663525ad.zip
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.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.stylelintrc.yaml b/.stylelintrc.yaml
index 342bf6a4e8..d51a08bf8e 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