-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathuno.config.ts
33 lines (31 loc) · 810 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
29
30
31
32
33
import presetWebFonts from '@unocss/preset-web-fonts'
import presetWind from '@unocss/preset-wind'
import transformerDirectives from '@unocss/transformer-directives'
import transformerVariantGroup from '@unocss/transformer-variant-group'
import { defineConfig } from 'unocss'
// TODO: self-host fonts
export default defineConfig({
blocklist: ['?', 'px', 'static'],
presets: [
presetWind(),
presetWebFonts({
provider: 'bunny',
fonts: {
mono: {
name: 'JetBrains Mono',
weights: [400, 700],
},
},
}),
],
rules: [
[
'font-ligatures-none',
{
'font-variant-ligatures': 'none',
'font-feature-settings': "'liga' 0",
},
],
],
transformers: [transformerVariantGroup(), transformerDirectives()],
})