From a1cf330f9ad1bc0d3769cd1fc7861ecb28de5ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 3 Jan 2025 18:25:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20unocss=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=96=B0=E7=9A=84=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E5=8F=98=E9=87=8F=E5=92=8C=E6=96=87=E6=9C=AC=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unocss.config.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/unocss.config.ts b/unocss.config.ts index ce8c5a2..6612078 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -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({