-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunocss.config.ts
40 lines (40 loc) · 1.08 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
// uno.config.ts
import { defineConfig, presetAttributify, presetIcons, presetUno, transformerDirectives, transformerVariantGroup } from 'unocss';
export default defineConfig({
// ...UnoCSS options
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
}),
],
// preflights: [
// {
// getCSS: () => readFile('./node_modules/@unocss/reset/tailwind.css', 'utf-8'),
// layer: 'preflights',
// },
// ],
transformers: [transformerDirectives(), transformerVariantGroup()],
shortcuts: {
frc: 'flex items-center justify-center',
frb: 'flex items-center justify-between',
fcc: 'flex flex-col items-center justify-center',
full: 'w-full h-full',
cp: 'cursor-pointer',
'f-col': 'flex flex-col',
},
rules: [
['round', { 'border-radius': '50%' }],
['btn', { 'background-color': '#41DBAA', padding: '5px 10px', color: '#000' }],
[
'btn-l',
{
'background-color': '#ffffff',
padding: '5px 10px',
color: '#232425',
},
],
],
});