Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ineshbose committed Jan 8, 2024
2 parents 14989c4 + 48483e4 commit c3c30de
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 c3c30de

Please sign in to comment.