Skip to content

Commit cc8abfb

Browse files
committed
fix: downlevel :is() selector for compatibility with tailwind 3.2+
1 parent ef3cf1b commit cc8abfb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ module.exports = {
8686
plugins: [
8787
["tailwindcss", { config: "./tailwind.config.custom.js" }],
8888
"@nativescript/tailwind",
89+
"@csstools/postcss-is-pseudo-class"
8990
],
9091
};
9192
```

nativescript.webpack.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = (webpack) => {
1313

1414
return merge(options, {
1515
postcssOptions: {
16-
plugins: ["tailwindcss", "@nativescript/tailwind"],
16+
plugins: ["tailwindcss", "@nativescript/tailwind", "@csstools/postcss-is-pseudo-class"],
1717
},
1818
});
1919
};

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@
3636
"devDependencies": {
3737
"@nativescript/webpack": "^5.0.8",
3838
"postcss": "8.4.16",
39-
"tailwindcss": "^3.1.8"
39+
"tailwindcss": "^3.4.0"
4040
},
4141
"dependencies": {
42-
"@hookun/parse-animation-shorthand": "^0.1.4"
42+
"@hookun/parse-animation-shorthand": "^0.1.4",
43+
"@csstools/postcss-is-pseudo-class": "4.0.4"
4344
},
4445
"peerDependencies": {
4546
"postcss": "^8.0.0"

0 commit comments

Comments
 (0)