Unverified Commit eae6749c authored by Jam Balaya's avatar Jam Balaya Committed by GitHub

docs: update `tailwind.config.ts` to use `satisfies` operator (#73924)

Co-authored-by: 's avatarLee Robinson <me@leerob.io>
parent a10515e3
......@@ -117,7 +117,7 @@ Inside your Tailwind configuration file, add paths to the files that will use th
```ts filename="tailwind.config.ts" highlight={5-7} switcher
import type { Config } from 'tailwindcss'
const config: Config = {
export default {
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}',
// Or if using `src` directory:
......@@ -127,8 +127,7 @@ const config: Config = {
extend: {},
},
plugins: [],
}
export default config
} satisfies Config
```
```js filename="tailwind.config.js" highlight={4-6} switcher
......
......@@ -20,10 +20,10 @@ npx tailwindcss init -p
Inside your Tailwind configuration file, add paths to the files that will use Tailwind class names:
```ts filename="tailwind.config.ts" switcher
```ts filename="tailwind.config.ts" highlight={5-10} switcher
import type { Config } from 'tailwindcss'
const config: Config = {
export default {
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}', // Note the addition of the `app` directory.
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
......@@ -36,11 +36,10 @@ const config: Config = {
extend: {},
},
plugins: [],
}
export default config
} satisfies Config
```
```js filename="tailwind.config.js" switcher
```js filename="tailwind.config.js" highlight={4-9} switcher
/** @type {import('tailwindcss').Config} */
module.exports = {
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