feat: 添加主题配置支持并优化 UI 组件页面的暗黑模式样式
All checks were successful
/ lint-build-and-check (push) Successful in 2m38s
/ depcheck (push) Successful in 3m7s
/ build-and-deploy-to-vercel (push) Successful in 3m22s
/ playwright (push) Successful in 4m49s
/ surge (push) Successful in 2m36s

This commit is contained in:
mini2024
2025-03-24 01:19:00 +08:00
parent cf95ef7e8e
commit 295f2d0c95
3 changed files with 22 additions and 4 deletions

View File

@ -4,7 +4,7 @@ import { Input as ShaInput } from '@/shadcn/components/ui/input';
</script>
<template>
<div class="flex flex-col items-start justify-center gap-4 bg-white p-4">
<div class="flex flex-col items-start justify-center gap-4 bg-white p-4 dark:bg-gray-900">
<div class="demo-block">
<div class="demo-block">
<a-button type="primary">Primary Button</a-button>
@ -38,6 +38,6 @@ import { Input as ShaInput } from '@/shadcn/components/ui/input';
<style scoped>
.demo-block {
@apply flex flex-wrap gap-4 b b-solid b-red-500 p-4;
@apply flex flex-wrap gap-4 b b-solid b-red-500 p-4 dark:bg-gray-800;
}
</style>