-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunocss.config.ts
44 lines (43 loc) · 1.16 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
import type { Theme } from 'unocss/preset-mini'
import { presetAttributify, presetIcons, presetUno, transformerDirectives, transformerVariantGroup } from 'unocss'
import presetAnimations from 'unocss-preset-animations'
import { defineConfig } from 'unocss/vite'
export default defineConfig<Theme>({
content: {
pipeline: {
include: [
// the default
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
// include js/ts files
'src/components/**/*.ts',
],
},
},
theme: {
colors: {
'primary': 'hsl(211 57% 58)',
'foreground': 'hsl(var(--foreground))',
'background': 'hsl(var(--background))',
'secondary-background': 'hsl(var(--secondary-background))',
'border': 'hsl(var(--border))',
'list-item': 'hsl(var(--list-item))',
},
fontFamily: {
bender: 'Bender, sans-serif',
akrobat: 'Akrobat, sans-serif',
},
},
shortcuts: {
'bg-main': 'bg-background c-foreground',
},
presets: [
presetUno(),
presetAttributify(),
presetIcons(),
presetAnimations(),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})