-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathunocss.config.ts
More file actions
49 lines (47 loc) · 1.34 KB
/
unocss.config.ts
File metadata and controls
49 lines (47 loc) · 1.34 KB
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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetWind3,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
import { editorIconClasses } from './src/constants/codeEditor'
export default defineConfig({
presets: [
presetWind3(),
presetAttributify(),
presetTypography(),
presetIcons({
collections: {
jet: () => import('./jetv-ui/dist/jet-icons.json').then(i => i.default),
custom: () => import('./src/assets/icons.json').then(i => i.default),
},
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
},
}),
],
shortcuts: {
// Typography
'text-h1': 'text-20px lh-24px font-semibold',
'text-h2': 'text-16px lh-20px font-semibold',
'text-default': 'text-13px lh-16px font-medium',
'text-default-semibold': 'text-13px lh-16px font-semibold',
'text-paragraph': 'text-13px lh-18px font-medium',
'text-medium': 'text-12px lh-16px font-medium',
'text-medium-semibold': 'text-12px lh-16px font-semibold',
// Color
'text-primary': 'light:color-$gray-1 dark:color-$gray-12',
'text-secondary': 'color-$gray-7',
// Layout
'settings-section': 'pl-30px',
},
safelist: editorIconClasses,
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})