Skip to content

Commit

Permalink
docs(tailwind): Update tailwind-css.mdx (#2888)
Browse files Browse the repository at this point in the history
* docs(tailwind): Update tailwind-css.mdx

Add guidance to integrate with TailwindCSS

* fix: show filename for codeblock component

* fix: remove unused highlight keywords

* Apply suggestions from code review

* Update docs/pages/docs/guide/advanced/tailwind-css.mdx

---------

Co-authored-by: Dimitri POSTOLOV <[email protected]>
  • Loading branch information
ng-hai and dimaMachina authored Sep 12, 2024
1 parent 0565efd commit 208f74f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/pages/docs/guide/advanced/tailwind-css.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,22 @@ module.exports = {
plugins: []
}
```

Next step, create a CSS file for Tailwind directives, `globals.css` for example:

```css filename="globals.css"
@tailwind base;
@tailwind components;
@tailwind utilities;
```

Then import into `pages/_app.jsx`

```jsx filename="_app.jsx"
import "../path/to/your/globals.css"

export default function App({ Component, pageProps }) {
return <Component {...pageProps} />
}
```

0 comments on commit 208f74f

Please sign in to comment.