feat: 更新 unocss 配置,添加新的颜色变量和文本颜色定义
Some checks failed
/ build-and-deploy-to-vercel (push) Has been cancelled
/ depcheck (push) Has been cancelled
/ playwright (push) Has been cancelled

This commit is contained in:
严浩
2025-01-03 18:25:37 +08:00
parent 4750d0dd43
commit a1cf330f9a

View File

@ -33,8 +33,8 @@ export default defineConfig({
// https://unocss.dev/config/theme#usage
colors: {
// TODO: Add colors
'surface-0': 'var(--p-surface-0)',
'surface-0': 'var(--p-surface-0)', // text-surface-0
'surface-900': 'var(--p-surface-900)', // text-surface-900
},
},
@ -43,6 +43,10 @@ export default defineConfig({
'logo-transform': 'i-icon:pacman w-6em h-6em transform transition-800',
pacman: 'i-icon:pacman text-(pink 36)',
},
{
// https://github.com/primefaces/tailwindcss-primeui/blob/d5e903377e015b7c63cb5edf42490b9d6954ef04/src/utils/preset.js
'text-muted-color': 'text-[var(--p-text-muted-color)]',
},
],
presets: [
presetUno({