fix: resolve Tailwind v3 configuration issues
Revert v4 imports, fix color definitions, and update theme config. #VERCEL_SKIP Co-authored-by: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com>
This commit is contained in:
parent
9c9987adad
commit
cee6a65696
110
app/globals.css
110
app/globals.css
|
|
@ -1,66 +1,72 @@
|
||||||
@import "tailwindcss";
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
|
||||||
@theme inline {
|
@layer base {
|
||||||
/* Updated to use the CSS variable generated by Next.js */
|
:root {
|
||||||
--font-mono: var(--font-vt323), monospace;
|
/* Pure Black & Green Terminal Theme - HSL Values */
|
||||||
--font-sans: var(--font-vt323), monospace;
|
/* #000000 */
|
||||||
--radius: 0rem;
|
--background: 0 0% 0%;
|
||||||
}
|
/* #33ff00 - Phosphor Green */
|
||||||
|
--foreground: 108 100% 50%;
|
||||||
|
|
||||||
:root {
|
/* #050505 */
|
||||||
/* Pure Black & Green Terminal Theme */
|
--card: 0 0% 2%;
|
||||||
--background: #000000;
|
--card-foreground: 108 100% 50%;
|
||||||
/* Brightened the green to a classic phosphor green */
|
|
||||||
--foreground: #33ff00;
|
|
||||||
|
|
||||||
--card: #050505;
|
/* #000000 */
|
||||||
--card-foreground: #33ff00;
|
--popover: 0 0% 0%;
|
||||||
|
--popover-foreground: 108 100% 50%;
|
||||||
|
|
||||||
--popover: #000000;
|
/* #33ff00 */
|
||||||
--popover-foreground: #33ff00;
|
--primary: 108 100% 50%;
|
||||||
|
--primary-foreground: 0 0% 0%;
|
||||||
|
|
||||||
--primary: #33ff00;
|
/* #002200 */
|
||||||
--primary-foreground: #000000;
|
--secondary: 120 100% 7%;
|
||||||
|
--secondary-foreground: 108 100% 50%;
|
||||||
|
|
||||||
--secondary: #002200;
|
/* #001100 */
|
||||||
--secondary-foreground: #33ff00;
|
--muted: 120 100% 3%;
|
||||||
|
--muted-foreground: 120 100% 27%;
|
||||||
|
|
||||||
--muted: #001100;
|
/* #003300 */
|
||||||
--muted-foreground: #008800;
|
--accent: 120 100% 10%;
|
||||||
|
--accent-foreground: 108 100% 50%;
|
||||||
|
|
||||||
--accent: #003300;
|
/* #cc0000 */
|
||||||
--accent-foreground: #33ff00;
|
--destructive: 0 100% 40%;
|
||||||
|
--destructive-foreground: 0 0% 0%;
|
||||||
|
|
||||||
--destructive: #cc0000;
|
/* #004400 */
|
||||||
--destructive-foreground: #000000;
|
--border: 120 100% 13%;
|
||||||
|
--input: 120 100% 13%;
|
||||||
|
--ring: 108 100% 50%;
|
||||||
|
|
||||||
--border: #004400;
|
--radius: 0rem;
|
||||||
--input: #004400;
|
}
|
||||||
--ring: #33ff00;
|
|
||||||
|
|
||||||
--radius: 0rem;
|
.dark {
|
||||||
}
|
--background: 0 0% 0%;
|
||||||
|
--foreground: 108 100% 50%;
|
||||||
.dark {
|
--card: 0 0% 2%;
|
||||||
--background: #000000;
|
--card-foreground: 108 100% 50%;
|
||||||
--foreground: #33ff00;
|
--popover: 0 0% 0%;
|
||||||
--card: #050505;
|
--popover-foreground: 108 100% 50%;
|
||||||
--card-foreground: #33ff00;
|
--primary: 108 100% 50%;
|
||||||
--popover: #000000;
|
--primary-foreground: 0 0% 0%;
|
||||||
--popover-foreground: #33ff00;
|
--secondary: 120 100% 7%;
|
||||||
--primary: #33ff00;
|
--secondary-foreground: 108 100% 50%;
|
||||||
--primary-foreground: #000000;
|
--muted: 120 100% 3%;
|
||||||
--secondary: #002200;
|
--muted-foreground: 120 100% 27%;
|
||||||
--secondary-foreground: #33ff00;
|
--accent: 120 100% 10%;
|
||||||
--muted: #001100;
|
--accent-foreground: 108 100% 50%;
|
||||||
--muted-foreground: #008800;
|
--destructive: 0 100% 40%;
|
||||||
--accent: #003300;
|
--destructive-foreground: 0 0% 0%;
|
||||||
--accent-foreground: #33ff00;
|
--border: 120 100% 13%;
|
||||||
--destructive: #cc0000;
|
--input: 120 100% 13%;
|
||||||
--destructive-foreground: #000000;
|
--ring: 108 100% 50%;
|
||||||
--border: #004400;
|
}
|
||||||
--input: #004400;
|
|
||||||
--ring: #33ff00;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"next": "16.0.3",
|
"next": "16.0.3",
|
||||||
"react": "19.2.0",
|
"react": "19.2.0",
|
||||||
"react-dom": "19.2.0",
|
"react-dom": "19.2.0",
|
||||||
"shadcn": "latest",
|
"shadcn": "3.5.0",
|
||||||
"tailwind-merge": "^2.5.5",
|
"tailwind-merge": "^2.5.5",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
"tw-animate-css": "1.4.0"
|
"tw-animate-css": "1.4.0"
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ importers:
|
||||||
specifier: 19.2.0
|
specifier: 19.2.0
|
||||||
version: 19.2.0(react@19.2.0)
|
version: 19.2.0(react@19.2.0)
|
||||||
shadcn:
|
shadcn:
|
||||||
specifier: latest
|
specifier: 3.5.0
|
||||||
version: 3.5.0(@types/node@22.0.0)(typescript@5.9.3)
|
version: 3.5.0(@types/node@22.0.0)(typescript@5.9.3)
|
||||||
tailwind-merge:
|
tailwind-merge:
|
||||||
specifier: ^2.5.5
|
specifier: ^2.5.5
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,24 @@
|
||||||
import type { Config } from "tailwindcss"
|
import type { Config } from "tailwindcss"
|
||||||
import defaultConfig from "shadcn/ui/tailwind.config"
|
|
||||||
|
|
||||||
const config: Config = {
|
const config = {
|
||||||
...defaultConfig,
|
darkMode: ["class"],
|
||||||
content: [
|
content: [
|
||||||
...defaultConfig.content,
|
"./pages/**/*.{ts,tsx}",
|
||||||
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
"./components/**/*.{ts,tsx}",
|
||||||
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
"./app/**/*.{ts,tsx}",
|
||||||
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
"./src/**/*.{ts,tsx}",
|
||||||
"*.{js,ts,jsx,tsx,mdx}",
|
"*.{js,ts,jsx,tsx,mdx}",
|
||||||
],
|
],
|
||||||
|
prefix: "",
|
||||||
theme: {
|
theme: {
|
||||||
...defaultConfig.theme,
|
container: {
|
||||||
|
center: true,
|
||||||
|
padding: "2rem",
|
||||||
|
screens: {
|
||||||
|
"2xl": "1400px",
|
||||||
|
},
|
||||||
|
},
|
||||||
extend: {
|
extend: {
|
||||||
...defaultConfig.theme.extend.colors,
|
|
||||||
colors: {
|
colors: {
|
||||||
border: "hsl(var(--border))",
|
border: "hsl(var(--border))",
|
||||||
input: "hsl(var(--input))",
|
input: "hsl(var(--input))",
|
||||||
|
|
@ -54,9 +59,27 @@ const config: Config = {
|
||||||
md: "calc(var(--radius) - 2px)",
|
md: "calc(var(--radius) - 2px)",
|
||||||
sm: "calc(var(--radius) - 4px)",
|
sm: "calc(var(--radius) - 4px)",
|
||||||
},
|
},
|
||||||
|
keyframes: {
|
||||||
|
"accordion-down": {
|
||||||
|
from: { height: "0" },
|
||||||
|
to: { height: "var(--radix-accordion-content-height)" },
|
||||||
|
},
|
||||||
|
"accordion-up": {
|
||||||
|
from: { height: "var(--radix-accordion-content-height)" },
|
||||||
|
to: { height: "0" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
animation: {
|
||||||
|
"accordion-down": "accordion-down 0.2s ease-out",
|
||||||
|
"accordion-up": "accordion-up 0.2s ease-out",
|
||||||
|
},
|
||||||
|
fontFamily: {
|
||||||
|
sans: ["var(--font-vt323)", "monospace"],
|
||||||
|
mono: ["var(--font-vt323)", "monospace"],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [...defaultConfig.plugins, require("tailwindcss-animate")],
|
plugins: [require("tailwindcss-animate")],
|
||||||
}
|
} satisfies Config
|
||||||
|
|
||||||
export default config
|
export default config
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue