diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 165eaa83..57549853 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -34,6 +34,10 @@ npm run check:local-app For parser, template, subscription output, or deployment changes, also run the focused test or selftest that covers the changed behavior. +## UI Colors + +The app has a dark and a light theme with the same layout. Take colors from the theme tokens in `packages/ui/src/styles/theme.css` (for example `text-fg-60`, `bg-ink/5`, `border-ink/10`, `bg-surface`) instead of dark-only classes such as `text-white/60` or `bg-white/5`; `npm run lint` rejects the latter. Check UI changes in both themes. + ## Documentation - Keep README changes bilingual: update `README-CN.md` first, then sync `README.md`. diff --git a/local/app/dashboard/settings/page.tsx b/local/app/dashboard/settings/page.tsx index 439e9875..bc309650 100644 --- a/local/app/dashboard/settings/page.tsx +++ b/local/app/dashboard/settings/page.tsx @@ -87,7 +87,7 @@ export default function SettingsPage() {

账户设置

-

本地管理员、订阅源安全和运行端点

+

本地管理员、订阅源安全和运行端点

@@ -101,11 +101,11 @@ export default function SettingsPage() {
-

用户名

+

用户名

{user?.username || "未登录"}

-

已保存订阅

+

已保存订阅

{user ? `${user.subscriptionCount} / ${user.quota.maxSubscriptions}` : "-"}