-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
98 lines (96 loc) · 2.69 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
88
89
90
91
92
93
94
95
96
97
import { defineConfig, presetIcons, presetWind } from 'unocss'
import presetTheme from 'unocss-preset-theme'
import transformerVariantGroup from '@unocss/transformer-variant-group'
import type { Theme } from 'unocss/preset-uno'
export default defineConfig<Theme>({
rules: [
['primary-gradient-text', {
'color': 'transparent',
'-webkit-background-clip': 'text',
'background-clip': 'text',
'background-image': 'linear-gradient(to right, #fe8d59 0%, #fe8d59 100%)'
}],
['px-container', {
'padding-left': 'max(15px, 50vw - 570px)',
'padding-right': 'max(15px, 50vw - 570px)'
}],
['safe-area', {
'padding-left': 'env(safe-area-inset-right);',
'padding-right': 'env(safe-area-inset-right);'
}],
['shadow-md-top', {
'box-shadow': '0 -1px 3px #0000001a',
}]
],
transformers: [
transformerVariantGroup()
],
safelist: [
'i-bxl-gmail',
'i-bxl-telegram',
'i-bxl-github',
'i-bxl-linkedin-square',
'i-lucide-printer',
'i-lucide-download',
'i-lucide:moon',
'i-lucide-sun',
'i-lucide-globe',
],
theme: {
fontFamily: {
inter: 'Inter Variable, sans-serif'
},
height:{
'bar-xs': '3rem',
'bar-md': '2.5rem'
},
},
presets: [
presetWind(),
presetIcons(),
presetTheme<Theme>({
theme: {
dark: {
colors: {
'primary': '#fe8d59',
'primary-foreground': '#09090b',
'primary-start': '#fe8d59',
'primary-end': '#fe6a26',
'secondary': '#27272a',
'secondary-foreground': '#ffffff',
'background': '#282828',
'foreground': '#e3e3e3',
'mute': '#a9a9a9',
'mute-foreground': '#e7e7e7',
'accent': '#3c3c3c',
'accent-foreground': '#fafafa',
'danger': '#dc2626',
'danger-foreground': '#f8d7da',
'backplate': '#303030',
'border': '#46464c',
},
},
light: {
colors: {
'primary': '#fe8d59',
'primary-foreground': '#ffffff',
'primary-start': '#fe8d59',
'primary-end': '#fe6a26',
'secondary': '#f4f4f5',
'secondary-foreground': '#18181b',
'background': '#ffffff',
'foreground': '#09090b',
'mute': '#595959',
'mute-foreground': '#e7e7e7',
'accent': '#f4f4f5',
'accent-foreground': '#18181b',
'danger': '#dc2626',
'danger-foreground': '#f8d7da',
'backplate': '#f4f4f5',
'border': '#e4e4e7',
},
}
}
})
],
})