mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 00:46:29 +00:00
feat(unocss): introduce new global preset stylesheet variable with unocss package on formating design layout
This commit is contained in:
parent
f904a405df
commit
a5477524a6
4
docs/.vitepress/theme/types/index.ts
Normal file
4
docs/.vitepress/theme/types/index.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface PageInfo {
|
||||||
|
readTime: number | string
|
||||||
|
words: number | string
|
||||||
|
}
|
||||||
33
unocss.config.ts
Normal file
33
unocss.config.ts
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import {
|
||||||
|
defineConfig,
|
||||||
|
presetAttributify,
|
||||||
|
presetIcons,
|
||||||
|
presetUno,
|
||||||
|
transformerDirectives,
|
||||||
|
transformerVariantGroup,
|
||||||
|
} from 'unocss'
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
shortcuts: {
|
||||||
|
'border-main': 'border-gray-400 border-opacity-30',
|
||||||
|
'bg-main': 'bg-gray-400',
|
||||||
|
'bg-base': 'bg-white dark:bg-hex-1a1a1a',
|
||||||
|
},
|
||||||
|
presets: [
|
||||||
|
presetUno(),
|
||||||
|
presetAttributify(),
|
||||||
|
presetIcons({
|
||||||
|
scale: 1.2,
|
||||||
|
warn: true,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
theme: {
|
||||||
|
colors: {
|
||||||
|
primary: '#3eaf7c',
|
||||||
|
},
|
||||||
|
fontFamily: {
|
||||||
|
mono: 'var(--vt-font-family-mono)',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
transformers: [transformerDirectives(), transformerVariantGroup()],
|
||||||
|
})
|
||||||
Loading…
Reference in New Issue
Block a user