-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
43 lines (42 loc) · 987 Bytes
/
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
// uno.config.ts
import { colors } from '@unocss/preset-wind'
import { defineConfig, presetUno } from 'unocss'
export default defineConfig({
presets: [presetUno()],
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
black: '#000',
white: '#fff',
dark: colors.slate[950], // '#020617'
darkLight: colors.slate[900],
darkLightBorder: colors.slate[800],
grayDark: colors.slate[600],
gray: colors.slate[400],
grayLight: colors.slate[300],
light: colors.slate[200],
primary: colors.sky[600],
success: '#27C485',
warning: '#F1B650',
error: colors.red[800],
},
fontSize: {
base: ['18px', '24px'],
small: ['16px', '20px'],
},
fontFamily: {
sans: 'Inter',
},
},
preflights: [
{
getCSS: ({ theme }) =>
`
body, html {
background-color: ${theme.colors?.dark};
}
`,
},
],
})