fix: 五站双模式色彩系统(浅/深各 10 组合全部可读)+ 硬编码色清零
- 五站各定义完整浅色+深色两套 token(background/foreground/card/secondary/ muted/border/input/primary/ring),data-theme 挂 <html>(覆盖全部路由), .dark 由 next-themes 切换按钮驱动;devai-tools 默认深色(env 可配) - 根因修复:data-theme 双重挂载(html + AuthLayout/ThemeChrome)导致 auth 子树被浅色 token 覆盖、深色不可读 —— 只保留 html 一处 - FormShell 硬编码色清零:gradient 白卡片→bg-card、minimal 白底/灰输入/ 紫按钮→token、editorial 纸白/neutral→token、terminal 深色内联→token (深浅自动适配,形态保持) - FormLabel 硬编码 #9393A3 → text-muted-foreground - 修复 data-theme double-mount 后 label 深字深底不可读(用户报告的问题) - 回归:10 组合(5 站×浅深)label 对比度全部达标;五站 mock 登录全部 OK
This commit is contained in:
@@ -23,6 +23,7 @@ const SITES_ROOT = path.join(REPO_ROOT, "sites");
|
||||
// ====================================================================
|
||||
const SITES = {
|
||||
"ai-stack": {
|
||||
themeId: "ai-stack",
|
||||
authVariant: "glass",
|
||||
themeClass: "site-ai-stack",
|
||||
brandZh: {
|
||||
@@ -93,6 +94,7 @@ const SITES = {
|
||||
},
|
||||
},
|
||||
launchai: {
|
||||
themeId: "launchai",
|
||||
authVariant: "gradient",
|
||||
themeClass: "site-launchai",
|
||||
brandZh: {
|
||||
@@ -161,6 +163,7 @@ const SITES = {
|
||||
},
|
||||
},
|
||||
"the-ai-ledger": {
|
||||
themeId: "the-ai-ledger",
|
||||
authVariant: "editorial",
|
||||
themeClass: "site-the-ai-ledger",
|
||||
brandZh: {
|
||||
@@ -230,6 +233,7 @@ const SITES = {
|
||||
},
|
||||
},
|
||||
"devai-tools": {
|
||||
themeId: "devai-tools",
|
||||
authVariant: "terminal",
|
||||
themeClass: "site-devai-tools",
|
||||
brandZh: {
|
||||
@@ -297,6 +301,7 @@ const SITES = {
|
||||
},
|
||||
},
|
||||
findai: {
|
||||
themeId: "findai",
|
||||
authVariant: "minimal",
|
||||
themeClass: "site-findai",
|
||||
brandZh: {
|
||||
@@ -782,6 +787,9 @@ NEXT_PUBLIC_APP_NAME="${site.brand.name}"
|
||||
# 登录页品牌模板(分栏侧栏颜色与标语)
|
||||
NEXT_PUBLIC_AUTH_ACCENT="${site.accent}"
|
||||
NEXT_PUBLIC_AUTH_VARIANT="${site.authVariant}"
|
||||
# 站点主题标识(<html data-theme>)与默认深浅(light | dark,用户可切换)
|
||||
NEXT_PUBLIC_THEME_ID="${site.themeId}"
|
||||
NEXT_PUBLIC_DEFAULT_THEME="${site.defaultTheme}"
|
||||
NEXT_PUBLIC_AUTH_BRAND_TAGLINE="${site.brand.tagline}"
|
||||
# 开发阶段免邮箱验证(生产置 false 发送真实验证邮件)
|
||||
DEV_SKIP_EMAIL_VERIFY="true"
|
||||
|
||||
Reference in New Issue
Block a user