-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuno.config.ts
70 lines (67 loc) · 1.87 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import {
defineConfig,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from "npm:unocss";
import logos from "npm:@iconify-json/logos/icons.json" with { type: "json" };
import simpleIcons from "npm:@iconify-json/simple-icons/icons.json" with { type: "json" };
import devicon from "npm:@iconify-json/devicon/icons.json" with { type: "json" };
import vscodeIcons from "npm:@iconify-json/vscode-icons/icons.json" with { type: "json" };
import twemoji from "npm:@iconify-json/twemoji/icons.json" with { type: "json" };
import mdi from "npm:@iconify-json/mdi/icons.json" with { type: "json" };
const themeColors = [
"brand",
"brand-dark",
"brand-darker",
"brand-darkest",
"fg",
"bg",
"main-bg",
"main-fg",
"main-fg-sub",
"main-border",
];
const colors = Object.fromEntries(themeColors.map((c) => [c, `rgb(var(--${c}) / <alpha-value>)`]));
export default {
options: {
theme: {
colors,
},
rules: [
[
"grid-cols-main-screen",
{ "grid-template-columns": "20rem auto 20rem" },
],
["h-main-screen", { height: "calc(100vh - 4 * 3.5rem)" }],
["h-navbar", { height: "3.5rem" }],
],
presets: [
presetUno(),
presetIcons({
collections: {
logos: () => logos,
"simple-icons": () => simpleIcons,
devicon: () => devicon,
"vscode-icons": () => vscodeIcons,
twemoji: () => twemoji,
mdi: () => mdi,
},
}),
presetTypography(),
presetWebFonts({
provider: "google",
fonts: {
sans: ["DM Sans:400,700", "Noto Sans SC:400,700"],
mono: ["Iosevka Nerd Font", "Iosevka", "JetBrains Mono"],
},
}),
],
},
cssFile: "uno.css",
transformers: [transformerDirectives(), transformerVariantGroup()],
reset: "tailwind",
};