-
Notifications
You must be signed in to change notification settings - Fork 16
/
unocss.config.ts
58 lines (57 loc) · 1.56 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
theme: {
colors: {
brand: {
dark: '#0D0F18',
light: '#f3f9fa',
blue: '#1c4561',
blueDark: '#18334c',
teal: '#10D3D4',
tealLight: '#d6edef',
tealDark: '#10AAB2',
tealTransparent: 'rgba(17,160,169,0.40)',
orange: '#FFA135',
yellow: '#FFE85E',
},
},
fontSize: {
'4xl': '2.5rem',
},
},
shortcuts: [
['btn', 'py-2 px-8 whitespace-nowrap bg-brand-teal text-white text-base font-semibold rounded-full cursor-pointer inline-block focus:outline-none scale-[0.99] hover:scale-100 active:scale-[0.98] transition duration-150'],
['btn-primary', 'bg-brand-orange text-black'],
['btn-outline', 'bg-transparent text-brand-teal border border-brand-teal'],
['grid-margins', 'max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8'],
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
}),
presetTypography(),
presetWebFonts({
provider: 'bunny',
fonts: {
sans: 'IBM Plex Sans:400,700',
mono: ['Fira Code', 'Fira Mono:400,700'],
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
safelist: 'grid-cols-1 grid-cols-2 grid-cols-3 grid-cols-4 grid-cols-5 lg:grid-cols-1 lg:grid-cols-2 lg:grid-cols-3 lg:grid-cols-4 lg:grid-cols-5'.split(' '),
})