-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
42 lines (39 loc) · 1.17 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
import {
defineConfig, presetUno, transformerDirectives, transformerVariantGroup, presetIcons, presetWebFonts, presetTypography
} from 'unocss'
export default defineConfig({
presets: [
presetUno(),
presetIcons(),
presetWebFonts({
provider: 'google', // default provider
fonts: {
// these will extend the default theme
worksans: {
name: 'Work Sans',
weights: [700],
italic: true
}
}
}),
presetTypography()
],
transformers: [
transformerDirectives(),
transformerVariantGroup()
],
theme: {
colors: {
primary: '#43caf2',
secondary: '#f8c02c'
}
},
shortcuts: {
'break-anywhere': '[word-break:break-word] [@supports(overflow-wrap:anywhere)]:[overflow-wrap:anywhere] [@supports(overflow-wrap:anywhere)]:[word-break:normal]',
'bg-gradient-primary': 'bg-gradient-to-r from-sky-500 to-primary', // from-30% to-80%
'bg-brand': 'bg-gradient-to-r from-20% to-80% from-primary to-secondary',
'text-clip-bg': 'table text-transparent bg-clip-text',
'text-gradient-primary': 'bg-gradient-primary text-clip-bg',
'text-brand': 'bg-brand text-clip-bg'
}
})