fix(stage-*): font fallback issue
This commit is contained in:
@@ -3,7 +3,7 @@ import { RouterView } from 'vue-router'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main text="gray-700 dark:gray-200" font-cuteen h-full>
|
||||
<main text="gray-700 dark:gray-200" h-full font-cute>
|
||||
<RouterView />
|
||||
</main>
|
||||
</template>
|
||||
|
||||
@@ -22,12 +22,5 @@ export default mergeConfigs([
|
||||
'transition-duration': '0s',
|
||||
}],
|
||||
],
|
||||
theme: {
|
||||
fontFamily: {
|
||||
'sans': `"DM Sans Variant", "DM Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";`,
|
||||
'sans-rounded': `"Comfortaa Variable", "Comfortaa", "DM Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";`,
|
||||
'cute': `"Sniglet", "Kiwi Maru", "xiaolai", "DM Sans Variant", "DM Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";`,
|
||||
},
|
||||
},
|
||||
},
|
||||
])
|
||||
|
||||
@@ -3,7 +3,7 @@ import { presetWebFonts } from '@unocss/preset-web-fonts'
|
||||
|
||||
export default definePreset(() => {
|
||||
return {
|
||||
name: 'preset-chromatic',
|
||||
name: 'preset-fonts',
|
||||
presets: [
|
||||
presetWebFonts({
|
||||
fonts: {
|
||||
|
||||
@@ -190,6 +190,13 @@ export function sharedUnoConfig() {
|
||||
}],
|
||||
],
|
||||
theme: {
|
||||
fontFamily: {
|
||||
'sans': `"DM Sans Variant", "DM Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";`,
|
||||
'sans-rounded': `"Comfortaa Variable", "Comfortaa", "DM Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";`,
|
||||
'cute': `"Sniglet", "Kiwi Maru", "xiaolai", "DM Sans Variant", "DM Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";`,
|
||||
'cuteen': `"Sniglet", "Kiwi Maru", "xiaolai", "DM Sans Variant", "DM Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";`,
|
||||
'cutejp': `"Sniglet", "Kiwi Maru", "xiaolai", "DM Sans Variant", "DM Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";`,
|
||||
},
|
||||
/**
|
||||
* https://github.com/unocss/unocss/blob/1031312057a3bea1082b7d938eb2ad640f57613a/packages-presets/preset-wind4/src/theme/animate.ts
|
||||
* https://unocss.dev/presets/wind4#transformdirectives
|
||||
|
||||
Reference in New Issue
Block a user