-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
49 lines (47 loc) · 1.03 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
// @unocss-include
export default defineConfig({
shortcuts: [
['n-link', 'op50 hover:(op100 text-primary) transition'],
['n-link-text', 'n-link underline'],
['n-tab', 'text-xl tracking-wide uppercase p3 border-b-2 border-transparent op20 transition'],
['n-tab-active', 'border-current op100'],
['border-base', 'border-gray-400/20'],
],
rules: [
[/^view-transition-([\w-]+)$/, ([, name]) => ({ 'view-transition-name': name })],
],
theme: {
colors: {
primary: '#40c1ad',
},
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
}),
presetTypography(),
presetWebFonts({
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})