mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 19:57:55 +01:00
fix(module): configure @nuxt/fonts with default weights
This commit is contained in:
@@ -91,12 +91,21 @@ export default defineNuxtModule<ModuleOptions>({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await registerModule('@nuxt/icon', 'icon', { cssLayer: 'components' })
|
await registerModule('@nuxt/icon', 'icon', {
|
||||||
|
cssLayer: 'components'
|
||||||
|
})
|
||||||
if (options.fonts) {
|
if (options.fonts) {
|
||||||
await registerModule('@nuxt/fonts', 'fonts', {})
|
await registerModule('@nuxt/fonts', 'fonts', {
|
||||||
|
defaults: {
|
||||||
|
weights: [400, 500, 600, 700]
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if (options.colorMode) {
|
if (options.colorMode) {
|
||||||
await registerModule('@nuxtjs/color-mode', 'colorMode', { classSuffix: '', disableTransition: true })
|
await registerModule('@nuxtjs/color-mode', 'colorMode', {
|
||||||
|
classSuffix: '',
|
||||||
|
disableTransition: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
addPlugin({ src: resolve('./runtime/plugins/colors') })
|
addPlugin({ src: resolve('./runtime/plugins/colors') })
|
||||||
|
|||||||
Reference in New Issue
Block a user