used daisyUI for dark mode

This commit is contained in:
daniel31x13
2023-11-24 07:50:16 -05:00
parent b8b6fe24bc
commit 3afd5fef6e
14 changed files with 105 additions and 48 deletions
+14 -5
View File
@@ -2,8 +2,22 @@
@tailwind components;
@tailwind utilities;
:root {
--my-color: #fff;
/* or any other variables/style */
}
[data-theme="dark"] {
--my-color: #000;
}
[data-theme="light"] {
--my-color: #ffabc8;
}
html,
body {
color-scheme: dark;
scroll-behavior: smooth;
}
@@ -140,11 +154,6 @@ body {
}
/* Theme */
@layer base {
body {
@apply dark:bg-neutral-900 bg-white text-black dark:text-white;
}
}
/* react-select */
@layer components {