-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
87 lines (86 loc) · 2.17 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import { createLocalFontProcessor } from '@unocss/preset-web-fonts/local'
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: [
{
'nav-link': 'opacity-70 hover:opacity-100 transition-opacity duration-200 cursor-pointer',
},
{
'hr-line': 'w-14 mx-auto my-8 border-solid border-1px !border-truegray-200 !dark:border-truegray-800',
},
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
prefix: 'i-',
extraProperties: {
'display': 'inline-block',
'vertical-align': 'text-bottom',
},
}),
presetTypography(),
presetWebFonts({
fonts: {
sans: 'Inter:100..900',
mono: 'Geist Mono:400..700',
},
processors: [
createLocalFontProcessor(),
],
}),
],
theme: {
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
},
additive: {
DEFAULT: 'hsl(var(--additive))',
foreground: 'hsl(var(--additive-foreground))',
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
},
border: 'hsl(var(--border))',
ring: 'hsl(var(--ring))',
bluesky: 'rgb(10, 122, 255)',
},
},
transformers: [transformerDirectives(), transformerVariantGroup()],
safelist: [
'i-devicon-plain-astro',
'i-logos-chrome',
'i-ph-file-ts',
'i-ph-file-vue',
'i-ri-bluesky-fill',
'i-simple-icons-cloudflarepages',
'i-simple-icons-mdnwebdocs',
],
})