Skip to content

Commit

Permalink
Update TW, form plugin and postcss; update nvmrc to 20; remove @tailwind
Browse files Browse the repository at this point in the history
 variants from index.css
  • Loading branch information
yvonnetangsu committed Jan 10, 2024
1 parent f2fa548 commit 9087455
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
},
"dependencies": {
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.3",
"tailwindcss": "^3.3.5"
"@tailwindcss/forms": "^0.5.7",
"tailwindcss": "^3.4.1"
},
"devDependencies": {
"auto-changelog": "^2.2.1",
Expand All @@ -42,7 +42,7 @@
"eslint-config-standard": "^16.0.2",
"eslint-plugin-prettier": "^3.4.0",
"light-server": "^2.9.1",
"postcss": "^8.4.31",
"postcss": "^8.4.33",
"postcss-import": "^13.0.0",
"postcss-loader": "^4.0.0",
"postcss-nested": "^5.0.1",
Expand Down
8 changes: 0 additions & 8 deletions src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,3 @@
*/
@tailwind utilities;

/**
* Use this directive to control where Tailwind injects the responsive
* variations of each utility.
*
* If omitted, Tailwind will append these classes to the very end of
* your stylesheet by default.
*/
@tailwind variants;
1 change: 1 addition & 0 deletions src/plugins/theme/borderWidth.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Note: these are in px not rem units
* 1, 2, 4 and 8px are already provided by Tailwind out of the box
*/
module.exports = function () {
return {
Expand Down
5 changes: 5 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ module.exports = {
':merge(.group):focus-within &',
':merge(.group):hover &',
]);
/**
* Note: in TW v3.4.0, the *: variant is added for targeting direct children
* https://github.com/tailwindlabs/tailwindcss/pull/12551
* Leaving these in for now for backwards compatibility.
*/
addVariant('children', '& > *');
addVariant('children-hover', '& > *:hover');
addVariant('children-focus', '& > *:focus');
Expand Down

0 comments on commit 9087455

Please sign in to comment.