forked from dahaha-365/YaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
69 lines (68 loc) · 2.58 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
import fs from 'node:fs/promises'
import {
defineConfig,
presetUno,
presetIcons,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
presetAttributify, presetMini,
} from 'unocss'
import { presetScrollbar } from 'unocss-preset-scrollbar'
export default defineConfig({
presets: [
presetUno(),
presetIcons({
cdn: 'https://esm.sh/',
scale: 1.2,
warn: true,
unit: 'em',
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
},
collections: {
carbon: () => import('@iconify-json/carbon/icons.json').then(i => i.default),
logos: () => import('@iconify-json/logos/icons.json').then(i => i.default),
cib: () => import('@iconify-json/cib/icons.json').then(i => i.default),
arcticons: () => import('@iconify-json/arcticons/icons.json').then(i => i.default),
simple: () => import('@iconify-json/simple-icons/icons.json').then(i => i.default),
twemoji: () => import('@iconify-json/twemoji/icons.json').then(i => i.default),
skill: () => import('@iconify-json/skill-icons/icons.json').then(i => i.default),
custom: {
'google-gemini-icon': () => fs.readFile('./IconSet/google-gemini-icon.svg', 'utf-8'),
'microsoft-copilot-icon': () => fs.readFile('./IconSet/copilot-icon.svg', 'utf-8'),
'dropbox-icon': () => fs.readFile('./IconSet/dropbox-icon.svg', 'utf-8'),
'evernote-icon': () => fs.readFile('./IconSet/evernote-icon.svg', 'utf-8'),
'quora-icon': () => fs.readFile('./IconSet/quora-icon.svg', 'utf-8'),
'slack-icon': () => fs.readFile('./IconSet/slack-icon.svg', 'utf-8'),
}
}
}),
presetAttributify(),
presetMini(),
presetWebFonts({
provider: 'bunny',
fonts: {
sans: 'Inter',
},
}),
presetScrollbar(),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
theme: {
colors: {
veryCool: '#0000ff', // class="text-very-cool"
brand: {
youtube: '#ff0000', //class="bg-brand-youtube"
hulu: '#66aa33', //class="bg-brand-hulu"
netflix: '#e50914',
google: '#4285f4',
spotify: '#1db954',
},
},
}
})