-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
uno.config.ts
28 lines (24 loc) · 824 Bytes
/
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
import presetRemToPx from '@unocss/preset-rem-to-px'
import { defineConfig, presetUno } from 'unocss'
// import presetRemToPx from '@unocss/preset-rem-to-px'
// import transformerAttributifyJsx from '@unocss/transformer-attributify-jsx'
// import { defineConfig, presetAttributify, presetUno } from 'unocss'
export default defineConfig({
presets: [
presetUno,
presetRemToPx({
baseFontSize: 4, // mr-4 = 1rem;
}),
],
// https://github.com/unocss/unocss/issues/1620
blocklist: ['container'],
rules: [
// `size-15` or `size-15px`
[/^size-([.\d]+)(?:px)?$/, ([_, num]) => ({ width: `${num}px`, height: `${num}px` })],
],
// presetAttributify({
// prefixedOnly: true,
// prefix: 'uno:',
// }),
// transformers: [transformerAttributifyJsx()], // this does not work
})