-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
34 lines (33 loc) · 1.28 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
import { defineConfig, presetIcons, presetUno, transformerVariantGroup, transformerDirectives } from 'unocss'
export default defineConfig({
presets: [
presetUno({
dark: {
dark: '[data-theme="dark"]',
light: '[data-theme="light"]',
},
}),
presetIcons(),
],
transformers: [transformerVariantGroup(), transformerDirectives()],
rules: [[/^animate-spin-(\d+)$/, ([, d]) => ({ animation: `spin ${d}ms linear infinite` })]],
theme: {
fontFamily: {
sans: `"Space Grotesk Variable",${presetUno()?.theme?.fontFamily?.sans}`,
},
colors: {
foreground: 'hsl(var(--foreground))',
background: 'hsl(var(--background))',
mutedForeground: 'hsl(var(--muted-foreground))',
mutedBackground: 'hsl(var(--muted-background))',
primaryForeground: 'hsl(var(--primary-foreground))',
primaryBackground: 'hsl(var(--primary-background))',
primaryBackgroundActive: 'hsl(var(--primary-background-active))',
secondaryForeground: 'hsl(var(--secondary-foreground))',
secondaryBackground: 'hsl(var(--secondary-background))',
secondaryBackgroundActive: 'hsl(var(--secondary-background-active))',
grayForeground: 'hsl(var(--gray-foreground))',
grayBackground: 'hsl(var(--gray-background))',
},
},
})