Skip to content

Commit

Permalink
📚 Add Nuxt option information for extending theme
Browse files Browse the repository at this point in the history
  • Loading branch information
carwack committed Oct 9, 2020
1 parent d04bcaa commit d7db27f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions website/pages/extending-theme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,22 @@ new Vue({
}).$mount()
```

### In Nuxt.js
In your nuxt.config.js file, you can then add your custom theme object by passing it in the `extendTheme` option.

```js
// Import your customTheme object
import customTheme from 'custom-theme.js'
export default {
...
modules: [
'@chakra-ui/nuxt',
'@nuxtjs/emotion'
],
chakra: {
extendTheme: customTheme
}
}
...
}
```

0 comments on commit d7db27f

Please sign in to comment.