Unverified Commit 1b6951ea authored by Eng Zer Jun's avatar Eng Zer Jun Committed by GitHub

docs: add `tailwind.config.ts` code block (#68006)

Signed-off-by: 's avatarEng Zer Jun <engzerjun@gmail.com>
Co-authored-by: 's avatarLee Robinson <me@leerob.io>
parent 7b4242a9
...@@ -29,9 +29,29 @@ npx tailwindcss init -p ...@@ -29,9 +29,29 @@ npx tailwindcss init -p
## Configuring Tailwind ## Configuring Tailwind
Inside `tailwind.config.js`, add paths to the files that will use Tailwind CSS class names: Inside your Tailwind configuration file, add paths to the files that will use Tailwind class names:
```js filename="tailwind.config.js" ```ts filename="tailwind.config.ts" switcher
import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}', // Note the addition of the `app` directory.
'./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: [],
}
export default config
```
```js filename="tailwind.config.js" switcher
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: [ content: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment