Skip to content

Commit 2cbe9bd

Browse files
committed
chore(deps): update tailwindcss
1 parent 96775a3 commit 2cbe9bd

File tree

5 files changed

+40
-22
lines changed

5 files changed

+40
-22
lines changed

apps/website/docusaurus.config.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,7 @@ const config: Config = {
138138
darkTheme: prismThemes.dracula,
139139
},
140140
} satisfies Preset.ThemeConfig,
141-
plugins: [
142-
function tailwindPlugin(context, options) {
143-
return {
144-
name: 'tailwind-plugin',
145-
configurePostCss(postcssOptions) {
146-
postcssOptions.plugins = [
147-
require('postcss-import'),
148-
require('tailwindcss'),
149-
require('autoprefixer'),
150-
];
151-
return postcssOptions;
152-
},
153-
};
154-
},
155-
],
141+
plugins: ['./src/plugins/tailwind-config.js'],
156142
};
157143

158144
export default config;

apps/website/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
"@docusaurus/remark-plugin-npm2yarn": "^3.7.0",
3232
"@docusaurus/tsconfig": "3.7.0",
3333
"@docusaurus/types": "3.7.0",
34+
"@tailwindcss/postcss": "^4.1.7",
3435
"autoprefixer": "^10.4.20",
3536
"micro-docgen": "^0.3.5",
36-
"postcss": "^8.4.49",
37-
"tailwindcss": "^4.0.0",
37+
"postcss": "^8.5.3",
38+
"tailwindcss": "^4.1.7",
3839
"typescript": "~5.8.0"
3940
},
4041
"browserslist": {

apps/website/src/css/custom.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@layer theme, base, components, utilities;
2+
@import 'tailwindcss/theme.css' layer(theme) important;
3+
@import 'tailwindcss/utilities.css' layer(utilities) important;
4+
5+
@custom-variant dark (&:is([data-theme="dark"] *));
46

57
/**
68
* Any CSS included here will be global. The classic template
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = function tailwindPlugin(context, options) {
2+
return {
3+
name: 'tailwind-plugin',
4+
configurePostCss(postcssOptions) {
5+
postcssOptions.plugins = [require('@tailwindcss/postcss')];
6+
return postcssOptions;
7+
},
8+
};
9+
};

pnpm-lock.yaml

Lines changed: 22 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)