-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
unocss.config.ts
87 lines (85 loc) · 1.88 KB
/
unocss.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 {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
} from 'unocss'
import { collections } from './unocss.config.collections'
export default defineConfig({
shortcuts: [
{
'app-container': 'px-24px sm:px-1.5rem max-w-1140px 2xl:max-w-1400px m-auto w-full',
'custom-link': 'text-app-text-grey hover:underline underline-offset-4px text-18px font-400 leading-32px cursor-pointer',
},
{
'custom-link-active': 'text-app-white! underline',
},
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
warn: true,
customizations: {
transform(svg, collection) {
if (collection === 'web') {
svg = svg.replace(/stroke="#[a-zA-Z0-9]+"/, 'stroke="currentColor"')
svg = svg.replace(/fill="#[a-zA-Z0-9]+"/, 'fill="currentColor"')
}
return svg
},
},
collections,
}),
presetWebFonts({
provider: 'google',
fonts: {
archivo: 'Archivo',
},
}),
],
theme: {
extend: {
screens: {
'2xl': '1600px',
},
},
colors: {
app: {
white: '#fff',
black: '#000',
green: '#B5E26B',
red: '#FF5252',
danger: '#FF0000',
bg: {
grey: '#ffffff33',
dark_grey: '#161616',
rating: {
default: '#494949',
red: '#FF4218',
orange: '#FF9900',
yellow: '#FFE600',
green: '#42FF00',
hover: '#202020',
},
team: {
grey: '#404040',
},
funding: {
card: '#101010',
},
audits: {
card: '#191919',
},
},
text: {
grey: '#909090',
rating: {
negative: '#FFB800',
},
},
},
},
},
})