-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.js
52 lines (51 loc) · 1.43 KB
/
uno.config.js
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
50
51
52
import { defineConfig, presetUno } from 'unocss';
import presetIcons from '@unocss/preset-icons';
import presetWebFonts from '@unocss/preset-web-fonts';
import extractorSvelte from '@unocss/extractor-svelte';
export default defineConfig({
theme: {
colors: {
primary: '#A08841',
secondary: '#212529',
'light-gray': '#D9D9D9'
}
},
shortcuts: {
btn: 'py-1 px-3 rounded-md inline-block w-fit',
'btn-lg': 'py-2 px-6 rounded-md',
'btn-primary': 'bg-primary text-white',
'btn-secondary': 'bg-secondary text-white',
'btn-disabled': 'opacity-50 cursor-default',
'btn-alert': 'bg-red-700 text-white',
'col-head': 'text-md font-bold border-b border-secondary p-2',
'col-body': 'p-2 border-b border-gray-300',
'toast': 'p-2 rounded-md',
'toast-success': 'bg-green-100 border-1 border-green-700',
'toast-alert': 'bg-red-100 border-1 border-red-700',
'checkbox': 'w-4 h-4',
},
extractors: [extractorSvelte()],
presets: [
presetIcons({
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle'
},
collections: {
mdi: () => import('@iconify-json/mdi-light/icons.json').then((i) => i.default),
"svg-spinners": () => import('@iconify-json/svg-spinners/icons.json').then(i => i.default),
}
}),
presetWebFonts({
provider: 'google', // default provider
fonts: {
sans: {
name: 'Arial',
provider: 'none',
weights: ['400', '600', '700']
}
}
}),
presetUno()
]
});