diff --git a/packages/core/scripts/generate-site.mjs b/packages/core/scripts/generate-site.mjs index bf21b6a..042fed9 100644 --- a/packages/core/scripts/generate-site.mjs +++ b/packages/core/scripts/generate-site.mjs @@ -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}" +# 站点主题标识()与默认深浅(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" diff --git a/packages/core/src/components/ui/form.tsx b/packages/core/src/components/ui/form.tsx index 8b04d66..cbca437 100644 --- a/packages/core/src/components/ui/form.tsx +++ b/packages/core/src/components/ui/form.tsx @@ -94,7 +94,7 @@ const FormLabel = React.forwardRef<