-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathunocss.config.ts
More file actions
97 lines (96 loc) · 3.21 KB
/
unocss.config.ts
File metadata and controls
97 lines (96 loc) · 3.21 KB
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,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
theme: {
animation: {
keyframes: {
slideDown: '{from{height:0}to{height:var(--radix-accordion-content-height)}}',
slideUp: '{from{height:var(--radix-accordion-content-height)}to{height:0}}',
overlayShow: '{from{opacity:0}to{opacity:1}}',
contentShow: `{from{opacity:0;transform:'translate(-50%,-48%) scale(0.96)'}to{opacity:1;transform:'translate(-50%,-50%) scale(1)';}}`,
},
durations: {
slideDown: '300ms',
slideUp: '300ms',
overlayShow: '150ms',
contentShow: '150ms',
},
timingFns: {
slideDown: 'cubic-bezier(0.87, 0, 0.13, 1)',
slideUp: 'cubic-bezier(0.87, 0, 0.13, 1)',
},
},
colors: {
brand: {
dark: '#000',
light: '#fff',
1: '#0176CE',
2: '#BDE0FF',
3: '#E91315',
4: '#EFE3F3',
5: '#FFC83F',
6: '#FFE4AE',
},
},
},
shortcuts: [
// Updated button with inline-flex for better text centering
['btn', 'py-4 px-8 whitespace-nowrap bg-brand-3 text-white text-sm md:text-base font-heading uppercase rounded-full cursor-pointer inline-flex items-center justify-center focus:outline-none scale-[0.99] hover:(scale-100 no-underline) active:scale-[0.98] transition duration-150'],
['btn-primary', 'bg-brand-1 text-brand-4'],
['btn-secondary', 'bg-white text-brand-3'],
['btn-outline', 'bg-transparent text-color-current b-1 b-color-current'],
['btn-link', 'text-brand-dark underline'],
['btn-slim', 'py-2 px-4 text-sm font-normal'],
['grid-margins', 'max-w-screen-xl mx-auto px-6'],
['grid-margins-max', 'm-a max-w-screen-2xl'],
['heading', 'font-heading'],
['section-py', 'py-15'],
['h1', 'heading text-4xl md:text-5xl lg:text-6xl font-normal'],
['h2', 'heading text-3xl md:text-4xl lg:text-5xl font-normal'],
['h3', 'heading text-2xl md:text-3xl font-normal'],
['h4', 'heading text-xl md:text-2xl font-normal'],
['h5', 'heading text-lg font-normal'],
['h6', 'heading text-base font-normal'],
['p1', 'text-base font-sans font-normal md:text-lg'],
['p2', 'text-base font-sans font-normal md:text-lg'],
['p3', 'text-base font-sans font-normal'],
['p4', 'text-sm font-sans font-normal'],
],
presets: [
presetUno(),
presetIcons({
scale: 1.2,
collections: {
mdi: () => import('@iconify/json/json/mdi.json').then(i => i.default),
}
}),
presetTypography(),
presetWebFonts({
fonts: {
heading: [
{ name: 'Epilogue', weights: ['400', '500', '600'], provider: 'bunny' },
{ name: 'Epilogue fallback', provider: 'none' },
],
sans: [
{ name: 'DM Sans', weights: ['400', '500'], provider: 'bunny' },
{ name: 'DM Sans fallback', provider: 'none' },
],
mono: [
{ name: 'DM Mono', provider: 'bunny' },
{ name: 'DM Mono fallback', provider: 'none' },
],
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})