Skip to content

Commit 28079c5

Browse files
committed
tailwind v4
1 parent a7cf150 commit 28079c5

File tree

7 files changed

+389
-530
lines changed

7 files changed

+389
-530
lines changed

app/globals.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";
2+
@plugin "./hero.ts";
3+
@source "../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}";
4+
@custom-variant dark (&:is(.dark *));
45

56
html {
67
font-size: 16px;

app/hero.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { heroui } from "@heroui/react";
2+
export default heroui();

app/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ export const metadata: Metadata = {
1212

1313
export default function Home() {
1414
return (
15-
<main className="container mx-auto max-w-7xl px-6 flex-grow">
15+
<main className="container mx-auto max-w-7xl px-6 grow">
1616
<section className="flex flex-col items-center justify-center">
17-
<section className="flex relative overflow-hidden lg:overflow-visible w-full flex-nowrap justify-between items-center h-[calc(100vh_-_64px)] 2xl:h-[calc(84vh_-_64px)]">
17+
<section className="flex relative overflow-hidden lg:overflow-visible w-full flex-nowrap justify-between items-center h-[calc(100vh-64px)] 2xl:h-[calc(84vh-64px)]">
1818
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4">
1919
<div className="text-center leading-8 md:leading-10 md:text-left">
2020
<div className="inline-block">
2121
<h1 className="font-bold text-3xl lg:text-6xl">
22-
<span className="from-[#51DEEC] to-[#3023AE] bg-clip-text text-transparent bg-gradient-to-b">
22+
<span className="from-[#51DEEC] to-[#3023AE] bg-clip-text text-transparent bg-linear-to-b">
2323
Effortlessly
2424
</span>{" "}
2525
build and share your C++ packages.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@
2222
"@fortawesome/free-solid-svg-icons": "^6.7.2",
2323
"@fortawesome/react-fontawesome": "^0.2.2",
2424
"@heroui/react": "2.8.1",
25+
"@heroui/theme": "^2.4.19",
2526
"@vercel/analytics": "^1.5.0",
2627
"@vercel/speed-insights": "^1.2.0",
27-
"framer-motion": "^12.22.0",
28+
"framer-motion": "12.23.6",
2829
"graphql": "^16.11.0",
2930
"next": "^15.3.4",
3031
"next-themes": "^0.4.6",
31-
"react": "^18.3.1",
32-
"react-dom": "^18.3.1",
32+
"react": "19.1.0",
33+
"react-dom": "19.1.0",
3334
"react-markdown": "^10.1.0",
3435
"semver": "^7.7.2",
3536
"timeago.js": "^4.0.2"
@@ -40,18 +41,18 @@
4041
"@graphql-codegen/introspection": "^4.0.3",
4142
"@graphql-codegen/typescript-graphql-request": "^6.3.0",
4243
"@graphql-codegen/typescript-operations": "^4.6.1",
44+
"@tailwindcss/postcss": "^4.1.11",
4345
"@tailwindcss/typography": "^0.5.16",
4446
"@tsconfig/next": "^2.0.3",
4547
"@types/node": "24.0.10",
4648
"@types/react": "18.3.12",
4749
"@types/react-dom": "18.3.1",
48-
"autoprefixer": "^10.4.21",
4950
"graphql-request": "^7.2.0",
5051
"graphql-tag": "^2.0.0",
5152
"next-sitemap": "^4.2.3",
5253
"postcss": "^8.5.6",
5354
"tailwind-variants": "^1.0.0",
54-
"tailwindcss": "^3.4.17",
55+
"tailwindcss": "4.1.11",
5556
"typescript": "^5.8.3"
5657
},
5758
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"

postcss.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export default {
22
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
3+
"@tailwindcss/postcss": {},
54
},
65
};

tailwind.config.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)