Skip to content

Commit 67d618d

Browse files
committed
chore: update example
1 parent f1e91b7 commit 67d618d

File tree

4 files changed

+332
-515
lines changed

4 files changed

+332
-515
lines changed

example/with-css-variables/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
},
1414
"devDependencies": {
1515
"@tailwindcss/container-queries": "0.1.1",
16+
"@tailwindcss/postcss": "^4.1.13",
1617
"@tailwindcss/typography": "0.5.16",
1718
"@types/node": "18.19.124",
1819
"@types/react": "^19.0.0",
1920
"@types/react-dom": "^19.0.0",
20-
"autoprefixer": "10.4.21",
2121
"postcss": "8.5.6",
2222
"sd-tailwindcss-transformer": "^2.0.0",
2323
"style-dictionary": "^4.1.2",
24-
"tailwindcss": "3.4.17",
24+
"tailwindcss": "^4.1.13",
2525
"typescript": "^5.9.2"
2626
}
2727
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
22
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
3+
'@tailwindcss/postcss': {},
54
},
65
}
Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
42

5-
@import './tailwind.css';
3+
@import './tailwind.css' layer(utilities);
4+
5+
@config '../tailwind.config.cjs';
6+
7+
/*
8+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
9+
so we've added these compatibility styles to make sure everything still
10+
looks the same as it did with Tailwind CSS v3.
11+
12+
If we ever want to remove these styles, we need to add an explicit border
13+
color utility to any element that depends on these defaults.
14+
*/
15+
@layer base {
16+
*,
17+
::after,
18+
::before,
19+
::backdrop,
20+
::file-selector-button {
21+
border-color: var(--color-gray-200, currentcolor);
22+
}
23+
}

0 commit comments

Comments
 (0)