Skip to content

Commit

Permalink
docs: fix defaultTheme.colors.green is undefined (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmnzt committed Jan 4, 2024
1 parent 1a8100b commit 48483e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/content/2.tailwind/1.config.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ This config has the highest priority to overwrite the defaults and [tailwindcss.

::code-group
```js [tailwind.config.js]
import defaultTheme from 'tailwindcss/defaultTheme'
import colors from 'tailwindcss/colors'

export default {
theme: {
extend: {
colors: {
primary: defaultTheme.colors.green
primary: colors.green
}
}
}
Expand All @@ -66,27 +66,27 @@ export default {

```ts [tailwind.config.ts]
import type { Config } from 'tailwindcss'
import defaultTheme from 'tailwindcss/defaultTheme'
import colors from 'tailwindcss/colors'

export default <Partial<Config>>{
theme: {
extend: {
colors: {
primary: defaultTheme.colors.green
primary: colors.green
}
}
}
}
```

```js [tailwind.config.cjs]
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')

module.exports = {
theme: {
extend: {
colors: {
primary: defaultTheme.colors.green
primary: colors.green
}
}
}
Expand Down

0 comments on commit 48483e4

Please sign in to comment.