This commit is contained in:
@ -18,6 +18,7 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
presets: [
|
||||
// TODO: https://github.dev/antfu-collective/vitesse/tree/main/src/components
|
||||
presetUno({
|
||||
/* prefix: "u-", */
|
||||
}),
|
||||
@ -33,6 +34,7 @@ export default defineConfig({
|
||||
display: "inline-block",
|
||||
"vertical-align": "middle",
|
||||
},*/
|
||||
cdn: 'https://esm.sh/',
|
||||
customizations: {
|
||||
iconCustomizer(collection, icon, props) {
|
||||
props.width = '1em';
|
||||
@ -40,13 +42,13 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
collections: {
|
||||
icon: FileSystemIconLoader('src/assets/uno-svg', (svg) => {
|
||||
// width="200px" height="200.00px"
|
||||
icon: FileSystemIconLoader('src/assets/icons/svgs', (svg) => {
|
||||
return svg.replace(/#000000|#000/g, 'currentColor');
|
||||
}),
|
||||
carbon: () => import('@iconify-json/carbon/icons.json').then((i) => i.default),
|
||||
},
|
||||
warn: true,
|
||||
}),
|
||||
}), // https://unocss.dev/presets/icons
|
||||
],
|
||||
transformers: [
|
||||
//https://unocss.dev/transformers/variant-group
|
||||
|
Reference in New Issue
Block a user