chore: migrate to tailwind v4, bump

This commit is contained in:
Aidan 2025-03-09 00:23:44 -05:00
parent 7f50b87326
commit 73ed3ec40c
4 changed files with 38 additions and 33 deletions

View File

@ -9,21 +9,23 @@
"lint": "next lint"
},
"dependencies": {
"@fontsource-variable/manrope": "^5.1.1",
"@vercel/analytics": "^1.4.1",
"@fontsource-variable/manrope": "^5.2.5",
"@vercel/analytics": "^1.5.0",
"next": "15.1.3",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"react-dom": "^19.0.0",
"react-icons": "^5.5.0"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^9",
"@eslint/eslintrc": "^3.3.0",
"@tailwindcss/postcss": "^4.0.12",
"@types/node": "^20.17.24",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"eslint": "^9.22.0",
"eslint-config-next": "15.1.3",
"@eslint/eslintrc": "^3"
"postcss": "^8.5.3",
"tailwindcss": "^4.0.12",
"typescript": "^5.8.2"
}
}

View File

@ -1,7 +1,7 @@
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
tailwindcss: {},
'@tailwindcss/postcss': {},
},
};

View File

@ -1,6 +1,27 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import 'tailwindcss';
@theme {
--color-background: var(--background);
--color-foreground: var(--foreground);
}
/*
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);
}
}
:root {
--background: #ffffff;

View File

@ -1,18 +0,0 @@
import type { Config } from "tailwindcss";
export default {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
},
},
},
plugins: [],
} satisfies Config;