Added dynamic colour-background

This commit is contained in:
pascalyazid committed 2026-05-13 21:31:29 +02:00
1 parent bc81bacdf5
commit d1522323d3
6 files changed
+6386 -258

No files matched your search

+48 -14
View File
@@ -1,26 +1,60 @@
@import "tailwindcss";
:root {
--background: #ffffff;
--foreground: #171717;
}
@custom-variant dark (&:where(.dark, .dark *));
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
:root {
--background: #ffffff;
--foreground: #171717;
/* Tailwind color variables (replaces addVariablesForColors plugin from Tailwind v3) */
--black: #000000;
--white: #ffffff;
--transparent: transparent;
--blue-300: #93c5fd;
--blue-400: #60a5fa;
--blue-500: #3b82f6;
--indigo-300: #a5b4fc;
--violet-200: #ddd6fe;
}
@media (prefers-color-scheme: dark) {
:root {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}
/* Dark mode overrides for color variables */
.dark {
--background: #0a0a0a;
--foreground: #ededed;
}
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
/* Aurora animation */
--animate-aurora: aurora 60s linear infinite;
@keyframes aurora {
from {
background-position:
50% 50%,
50% 50%;
}
to {
background-position:
350% 50%,
350% 50%;
}
}
}
body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}