forked from antfu-collective/vitesse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
100 lines (90 loc) · 2.42 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
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
98
99
100
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
import { presetScrollbarHide } from 'unocss-preset-scrollbar-hide'
export default defineConfig({
shortcuts: [
['btn', 'px-4 py-1 rounded inline-block bg-teal-700 text-white cursor-pointer !outline-none hover:bg-teal-800 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
['icon-btn', 'inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-teal-600'],
// PORTAL PRESETS
// https://tailwindcomponents.com/gradient-generator/
['portal-gradient', 'bg-gradient-to-r from-slate-900 to-slate-700'],
['portal-gradient-text-header', 'bg-gradient-to-r from-violet-400 to-rose-600 bg-clip-text text-transparent font-pop text-3xl uppercase font-black'],
// DEV PRESETS
['dev-edge', 'border-1 border-true-gray-600 border-dashed hover:(bg-gray-100)'],
],
theme: {
colors: {
dark: {
pure: '#000',
dark: '#080808',
},
light: {
pure: '#fff',
mid: '#e6e6e6',
},
accent: {
main: '#debc57',
sub: '#6bc5e8',
},
},
},
presets: [
presetWebFonts({
//
provider: 'bunny',
fonts: {
title:
{
name: 'Playfair Display',
weights: ['100', '200', '300', '400', '500', '600', '700', '800'],
italic: false,
},
pop:
{
name: 'Poppins',
weights: ['100', '200', '300', '400', '500', '600', '700', '800'],
italic: false,
},
sans:
{
name: 'Noto Sans',
weights: ['100', '200', '300', '400', '500', '600', '700', '800'],
italic: false,
},
},
// ### SANS
// Montserrat
// Roboto
// Poppins
// Noto Sans
// ### SERIF
// Noto Serif Display
// Playfair Display
// Aboreto
// El Messiri
// Cormorant Garamond
// ZCOOL XiaoWei
}),
presetUno(),
presetScrollbarHide(),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
}),
presetTypography(),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
safelist: 'prose m-auto text-left'.split(' '),
})