mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
Merge remote-tracking branch 'origin/v3' into feat/init-blog
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=public-sans:400,500,600,700" rel="stylesheet" />
|
||||
<title>Nuxt UI - Vue Playground</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -93,7 +93,7 @@ export default defineNuxtModule<ModuleOptions>({
|
||||
|
||||
await registerModule('@nuxt/icon', 'icon', { cssLayer: 'components' })
|
||||
if (options.fonts) {
|
||||
await registerModule('@nuxt/fonts', 'fonts', { experimental: { processCSSVariables: true } })
|
||||
await registerModule('@nuxt/fonts', 'fonts', {})
|
||||
}
|
||||
if (options.colorMode) {
|
||||
await registerModule('@nuxtjs/color-mode', 'colorMode', { classSuffix: '', disableTransition: true })
|
||||
|
||||
@@ -44,7 +44,7 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record<string, an
|
||||
}
|
||||
|
||||
function generateVariantDeclarations(variants: string[]) {
|
||||
return variants.map((variant) => {
|
||||
return variants.filter(variant => json.includes(`as typeof ${variant}`)).map((variant) => {
|
||||
const keys = Object.keys(result.variants[variant])
|
||||
return `const ${variant} = ${JSON.stringify(keys, null, 2)} as const`
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user