You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'./app/**/*.{js,ts,jsx,tsx,mdx}', // Note the addition of the `app` directory.
47
-
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
48
-
'./components/**/*.{js,ts,jsx,tsx,mdx}',
49
-
50
-
// Or if using `src` directory:
51
-
'./src/**/*.{js,ts,jsx,tsx,mdx}',
52
-
],
53
-
theme: {
54
-
extend: {},
24
+
exportdefault {
25
+
plugins: {
26
+
'@tailwindcss/postcss': {},
55
27
},
56
-
plugins: [],
57
28
}
58
29
```
59
30
60
-
You do not need to modify `postcss.config.js`.
61
-
62
31
<AppOnly>
63
32
64
33
## Importing Styles
65
34
66
35
Add the [Tailwind CSS directives](https://tailwindcss.com/docs/functions-and-directives#directives) that Tailwind will use to inject its generated styles to a [Global Stylesheet](/docs/app/building-your-application/styling/css#global-styles) in your application, for example:
67
36
68
37
```css filename="app/globals.css"
69
-
@tailwind base;
70
-
@tailwind components;
71
-
@tailwind utilities;
38
+
@import'tailwindcss';
72
39
```
73
40
74
41
Inside the [root layout](/docs/app/building-your-application/routing/layouts-and-templates#root-layout-required) (`app/layout.tsx`), import the `globals.css` stylesheet to apply the styles to every route in your application.
0 commit comments