Florian Hoss 2 лет назад
Родитель
Сommit
87205943fe
3 измененных файлов с 11 добавлено и 12 удалено
  1. 3 3
      static/css/input.css
  2. 4 5
      tailwind.config.js
  3. 4 4
      templates/index.gohtml

+ 3 - 3
static/css/input.css

@@ -13,12 +13,12 @@
     @apply h-8 w-8 shrink-0 mr-3 opacity-90;
   }
   .extra-icon {
-    @apply h-3 w-3 shrink-0 mr-2;
+    @apply h-3 w-3 shrink-0 mr-2 text-primary;
   }
   .extra-sun-icon {
-    @apply h-4 w-4 shrink-0 -mb-1 mr-2;
+    @apply h-4 w-4 shrink-0 -mb-1 mr-2 text-primary;
   }
   .extra-system-info {
-    @apply text-primary text-xs truncate;
+    @apply text-xs truncate;
   }
 }

+ 4 - 5
tailwind.config.js

@@ -1,6 +1,6 @@
 /** @type {import('tailwindcss').Config} */
 module.exports = {
-  content: ["./templates/**/*.gohtml"],
+  content: ["./templates/*.gohtml"],
   theme: {
     extend: {},
   },
@@ -10,14 +10,13 @@ module.exports = {
       {
         light: {
           ...require("daisyui/src/colors/themes")["[data-theme=light]"],
-          primary: "#d07915",
+          primary: "#f28c18",
         },
-        halloween: {
+        dark: {
           ...require("daisyui/src/colors/themes")["[data-theme=halloween]"],
-          primary: "#d07915",
         },
       },
     ],
-    darkTheme: "halloween",
+    darkTheme: "dark",
   },
 };

+ 4 - 4
templates/index.gohtml

@@ -23,25 +23,25 @@
             <svg class="extra-icon">
               <use xlink:href="#quote"></use>
             </svg>
-            <div id="weatherDescription" class="text-primary">{{ .Weather.Description }}</div>
+            <div id="weatherDescription">{{ .Weather.Description }}</div>
           </div>
           <div class="flex items-center">
             <svg class="extra-icon">
               <use xlink:href="#humidity"></use>
             </svg>
-            <div id="weatherHumidity" class="text-primary">{{ .Weather.Humidity }}%</div>
+            <div id="weatherHumidity">{{ .Weather.Humidity }}%</div>
           </div>
           <div class="hidden sm:flex items-center">
             <svg class="extra-sun-icon">
               <use xlink:href="#sunrise"></use>
             </svg>
-            <div id="weatherSunrise" class="text-primary">{{ .Weather.Sunrise }}</div>
+            <div id="weatherSunrise">{{ .Weather.Sunrise }}</div>
           </div>
           <div class="hidden sm:flex items-center">
             <svg class="extra-sun-icon">
               <use xlink:href="#sunset"></use>
             </svg>
-            <div id="weatherSunset" class="text-primary">{{ .Weather.Sunset }}</div>
+            <div id="weatherSunset">{{ .Weather.Sunset }}</div>
           </div>
         </div>
       </div>