Set global size for all component using app.config.ts
How to set global size for all component using app.config.ts> I tried the followinf it does nto work:
export default defineAppConfig({
ui: {
// base colors
primary: "green",
gray: "slate",
defaults: {
size: "lg",
}
}
})app.config.ts in Nuxt UI, you need to modify your configuration slightly. The approach you've tried is close, but not quite correct. Here's how you can set a global default size for components:size, color, variant, etc. have a default value that you can override in your app.config.ts."variantexport default defineAppConfig({
ui: {
primary: "green",
gray: "slate",
button: {
default: {
size: "lg"
}
},
// Repeat for other components you want to set a default size for
}
})export default defineAppConfig({
ui: {
primary: "green",
gray: "slate",
button: {
default: {
size: "lg"
}
},
input: {
default: {
size: "lg"
}
},
select: {
default: {
size: "lg"
}
}
// ... other components
}
})