Open some-user123 opened 2 weeks ago
There is indeed a type error about string[]
.
However, button.variants.size.lg
and dropdownMenu.variants.active.false
must be objects to target slots. Your config should look like this:
export default defineAppConfig({
ui: {
button: {
slots: {
base: 'font-normal'
},
variants: {
size: {
lg: {
base: 'px-4 py-2'
}
}
},
compoundVariants: [
{
color: 'error',
variant: 'link',
class: 'text-lg'
}
]
},
dropdownMenu: {
variants: {
active: {
false: {
item: 'data-highlighted:before:bg-red-500'
}
}
}
}
}
})
Many thanks I've updated the reproduction to fix my errors 😳
Also add that when you try to change the theme from neutral it does not let you select items like Zinc or Slate,
Is there any way to customize the neutral color to something not on that list? For example, a hexadecimal color?
Environment
Build Modules: -
Version
v3.0.0-alpha.7
Reproduction
https://github.com/some-user123/nuxt-ui-3-typeerrors
Description
After adding this
app.config.ts
to a plain project, type errors occur:Additional context
(There are actually more type errors, see #2532. Above errors occur in addition.)
Logs
No response