fix: bug
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Has been cancelled

This commit is contained in:
sexygoat
2026-05-11 15:14:38 +08:00
parent 28246f5345
commit 52311fae0a
22 changed files with 547 additions and 1773 deletions

View File

@@ -44,7 +44,7 @@ export default defineConfig({
* @see https://github.com/unocss/unocss#shortcuts
*/
shortcuts: {
'border-base': 'border border-gray-500_10',
'border-base': 'border border-[var(--border-primary)]',
'center': 'flex justify-center items-center',
},
rules: [
@@ -53,21 +53,25 @@ export default defineConfig({
theme: {
colors: {
// 主题颜色
'primary': 'var(--theme-primary)',
'success': 'var(--theme-success)',
'warning': 'var(--theme-warning)',
'error': 'var(--theme-error)',
'primary': 'var(--brand-primary)',
'secondary': 'var(--brand-secondary)',
'tertiary': 'var(--brand-tertiary)',
'success': 'var(--color-success)',
'warning': 'var(--color-warning)',
'error': 'var(--color-error)',
// 文字颜色
'text-main': 'var(--theme-main-color)',
'text-content': 'var(--theme-content-color)',
'text-tips': 'var(--theme-tips-color)',
'text-light': 'var(--theme-light-color)',
'text-disabled': 'var(--theme-disabled-color)',
'text-main': 'var(--text-primary)',
'text-content': 'var(--text-secondary)',
'text-tips': 'var(--text-tertiary)',
'text-light': 'var(--text-quaternary)',
'text-disabled': 'var(--text-quaternary)',
// 背景颜色
'bg-main': 'var(--theme-bg-color)',
'bg-secondary': 'var(--theme-bg-color-secondary)',
'bg-main': 'var(--bg-page)',
'bg-secondary': 'var(--bg-container)',
'bg-muted': 'var(--bg-muted)',
// 边框颜色
'border-main': 'var(--theme-border-color)',
'border-main': 'var(--border-primary)',
'border-secondary': 'var(--border-secondary)',
},
},
transformers: [