瀏覽代碼

fix: theme css format

Adam 5 月之前
父節點
當前提交
cbb75d8577
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 3 3
      packages/app/scripts/vite-theme-plugin.ts
  2. 1 0
      packages/app/src/assets/theme.css

+ 3 - 3
packages/app/scripts/vite-theme-plugin.ts

@@ -37,7 +37,7 @@ class ColorResolver {
       if (typeof value === "string") {
       if (typeof value === "string") {
         if (value === "none") return { dark: value, light: value }
         if (value === "none") return { dark: value, light: value }
         if (value.startsWith("#")) {
         if (value.startsWith("#")) {
-          return { dark: value.toUpperCase(), light: value.toUpperCase() }
+          return { dark: value.toLowerCase(), light: value.toLowerCase() }
         }
         }
         const resolved = this.resolveReference(value)
         const resolved = this.resolveReference(value)
         return { dark: resolved, light: resolved }
         return { dark: resolved, light: resolved }
@@ -57,7 +57,7 @@ class ColorResolver {
     if (typeof value === "string") {
     if (typeof value === "string") {
       if (value === "none") return value
       if (value === "none") return value
       if (value.startsWith("#")) {
       if (value.startsWith("#")) {
-        return value.toUpperCase()
+        return value.toLowerCase()
       }
       }
       return this.resolveReference(value)
       return this.resolveReference(value)
     }
     }
@@ -72,7 +72,7 @@ class ColorResolver {
     if (typeof colorValue === "string") {
     if (typeof colorValue === "string") {
       if (colorValue === "none") return colorValue
       if (colorValue === "none") return colorValue
       if (colorValue.startsWith("#")) {
       if (colorValue.startsWith("#")) {
-        return colorValue.toUpperCase()
+        return colorValue.toLowerCase()
       }
       }
       return this.resolveReference(colorValue)
       return this.resolveReference(colorValue)
     }
     }

+ 1 - 0
packages/app/src/assets/theme.css

@@ -2383,3 +2383,4 @@
   --theme-syntax-operator: #f0dfaf;
   --theme-syntax-operator: #f0dfaf;
   --theme-syntax-punctuation: #dcdccc;
   --theme-syntax-punctuation: #dcdccc;
 }
 }
+