File tree Expand file tree Collapse file tree 4 files changed +332
-515
lines changed
example/with-css-variables Expand file tree Collapse file tree 4 files changed +332
-515
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 11module . exports = {
22 plugins : {
3- tailwindcss : { } ,
4- autoprefixer : { } ,
3+ '@tailwindcss/postcss' : { } ,
54 } ,
65}
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments