forked from QuiltMC/developer-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
30 lines (28 loc) · 847 Bytes
/
uno.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { defineConfig, presetIcons } from "unocss";
export default defineConfig({
presets: [
presetIcons({
// Collections are automatically imported from inconify packages
customizations: {
iconCustomizer(collection, icon, props) {
// Makes the empty cut in half circle slightly larger
// to match the size of the font awesome's one
if (collection === "tabler" && icon === "circle-half") {
props.width = "1.2em";
props.height = "1.2em";
}
// Change the font awesome half filled circle icon's width
// to match that of the empty one
if (collection === "fa6-solid" && icon === "circle-half-stroke") {
props.width = "1.2em";
}
}
}
})
],
rules: [
// Replicates font awesome's "fa-xl"
["i-xl", { "font-size": "1.5em" }],
["i-2xl", { "font-size": "2em" }]
]
});