-
Notifications
You must be signed in to change notification settings - Fork 1
/
uno.config.ts
51 lines (50 loc) · 1.12 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
import { defineConfig, presetUno, presetWebFonts, transformerDirectives } from 'unocss'
export default defineConfig({
presets: [
presetUno(),
presetWebFonts({
provider: 'google',
fonts: {
sans: {
name: 'Roboto',
weights: [100, 200, 300, 400, 500, 600, 700],
},
mono: ['Fira Code', 'Fira Mono:100,700'],
}
})
],
content: {
filesystem: [
'./src/components/*.{ts,tsx}',
'./src/elements/*.{ts,tsx}',
'./src/index.{ts,tsx}'
],
},
theme: {
colors: {
primary: process.env.REACT_APP_PRIMARY_COLOR || '#ff7777',
secondary: process.env.REACT_APP_SECONDARY_COLOR || '#ffd0d0',
ternary: process.env.REACT_APP_TERNARY_COLOR || '#dd2e44',
error: '#d80000',
success: '#02a61a',
warning: '#dead2e'
},
breakpoints: {
sm: '460px',
md: '840px',
lg: '1800px',
xl: '2200px'
},
fontWeight: {
thin: '100',
light: '300',
normal: '400',
medium: '500',
semibold: '600',
bold: '700',
}
},
transformers: [
transformerDirectives()
]
})