'./app/**/*.{js,ts,jsx,tsx,mdx}', // Note the addition of the `app` directory.
'@tailwindcss/postcss': {},
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
// Or if using `src` directory:
'./src/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {},
},
},
plugins: [],
}
}
```
```
You do not need to modify `postcss.config.js`.
<AppOnly>
<AppOnly>
## Importing Styles
## Importing Styles
...
@@ -66,9 +35,7 @@ You do not need to modify `postcss.config.js`.
...
@@ -66,9 +35,7 @@ You do not need to modify `postcss.config.js`.
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:
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:
```css filename="app/globals.css"
```css filename="app/globals.css"
@tailwind base;
@import 'tailwindcss';
@tailwind components;
@tailwind utilities;
```
```
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.
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.