-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathuno.config.ts
More file actions
68 lines (61 loc) · 1.88 KB
/
Copy pathuno.config.ts
File metadata and controls
68 lines (61 loc) · 1.88 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import type { Theme } from '@unocss/preset-wind4'
import extractorMdc from '@unocss/extractor-mdc'
import { presetWind4 } from '@unocss/preset-wind4'
import transformerDirectives from '@unocss/transformer-directives'
import { defineConfig, presetTypography } from 'unocss'
import presetThemes from 'unocss-preset-theme'
export default defineConfig({
shortcuts: {
'icon': '-align-0.125em',
'z-content': 'z-10', // isolated 容器內的內容層(表格表頭、列表標題)
'z-sticky': 'z-20', // 頁面固定元素(導覽列、日期選擇器、篩選列)
'z-dropdown': 'z-30', // 下拉與彈出選單
'z-modal': 'z-40', // 全螢幕遮罩與對話框
'z-toast': 'z-50', // 最上層(手機選單、通知)
},
extractors: [
extractorMdc(),
],
content: {
filesystem: ['../content/**/*.md'],
},
transformers: [
transformerDirectives(),
],
presets: [
presetWind4({
preflights: {
reset: true,
},
}),
presetThemes<Theme>({
theme: {
light: {
colors: {
'cp-primary': '#0C3C23',
'cp-primary-content': '#FFF',
'cp-secondary': '#2AC173',
'cp-secondary-content': '#FFF',
'cp-secondary-hover': '#239D5F',
'cp-accent': '#1E2892',
'cp-accent-content': '#FFF',
'cp-accent-hover': '#161F6E',
'cp-error': '#E84393',
'cp-error-content': '#FFF',
'cp-warn-50': '#FFF4E6',
'cp-warn-100': '#FFE3C2',
'cp-warn-300': '#FFB866',
'cp-warn-500': '#F97316',
'cp-warn-600': '#EA580C',
'cp-warn-700': '#C2410C',
'cp-success': '#2AC173',
'cp-success-content': '#FFF',
'cp-info': '#4A9BE8',
'cp-info-content': '#FFF',
},
},
},
}),
presetTypography(),
],
})