-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
uno.config.ts
39 lines (37 loc) · 1.1 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
import { markdownWrapperClasses } from './config'
const safelist: string[] = markdownWrapperClasses.concat([])
export default defineConfig({
shortcuts: [
['btn', 'px-4 py-1 rounded inline-block bg-blue-500 text-white cursor-pointer hover:bg-blue-600 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
['icon-btn', 'w-8 h-8 text-gray-800 dark:text-white inline-flex outline-none border-none bg-transparent justify-center items-center cursor-pointer opacity-75 transition duration-200 rounded-full hover:(text-blue-500)'],
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
extraProperties: {
'display': 'inline-block',
'height': '1.2em',
'width': '1.2em',
'vertical-align': 'text-bottom',
},
}),
presetTypography(),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
safelist,
})