From b806fbab9630a71bce6ee63fb2f77883ca8eccc9 Mon Sep 17 00:00:00 2001
From: Romulus21
Date: Fri, 14 Mar 2025 16:38:32 +0100
Subject: [PATCH] update tailwind
---
input.css | 23 ++++++++++++++++++++---
src/routes/data.rs | 5 ++---
src/routes/shutters.rs | 12 ++++++------
3 files changed, 28 insertions(+), 12 deletions(-)
diff --git a/input.css b/input.css
index 04f2e31..7383206 100644
--- a/input.css
+++ b/input.css
@@ -1,7 +1,24 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
+@import 'tailwindcss';
+@config './tailwind.config.js';
+
+/*
+ The default border color has changed to `currentColor` in Tailwind CSS v4,
+ so we've added these compatibility styles to make sure everything still
+ looks the same as it did with Tailwind CSS v3.
+
+ If we ever want to remove these styles, we need to add an explicit border
+ color utility to any element that depends on these defaults.
+*/
+@layer base {
+ *,
+ ::after,
+ ::before,
+ ::backdrop,
+ ::file-selector-button {
+ border-color: var(--color-gray-200, currentColor);
+ }
+}
body {
@apply dark:bg-prim dark:text-second
diff --git a/src/routes/data.rs b/src/routes/data.rs
index 1936ffb..34ea5e8 100644
--- a/src/routes/data.rs
+++ b/src/routes/data.rs
@@ -61,15 +61,14 @@ pub fn ValueCard(topic: String, location: String, sensor: String, unity: String,
"Something went wrong, please try again later."