diff --git a/package.json b/package.json index 09acc9e..e295dd8 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/postcss.config.mjs b/postcss.config.mjs index 1a69fd2..5d6d845 100644 --- a/postcss.config.mjs +++ b/postcss.config.mjs @@ -1,7 +1,7 @@ /** @type {import('postcss-load-config').Config} */ const config = { plugins: { - tailwindcss: {}, + '@tailwindcss/postcss': {}, }, }; diff --git a/src/app/globals.css b/src/app/globals.css index 00f9412..b99949b 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -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; diff --git a/tailwind.config.ts b/tailwind.config.ts deleted file mode 100644 index 109807b..0000000 --- a/tailwind.config.ts +++ /dev/null @@ -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;