Files
gt-agent-company/openspec/changes/update-agent-index-layout-and-theme-tokens/proposal.md
sexygoat 52311fae0a
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Has been cancelled
fix: bug
2026-05-11 15:14:38 +08:00

990 B

Change: Update shared theme tokens

Why

The project currently has inconsistent theme entry points: src/static/styles/theme.scss defines --brand-* variables, while src/uni.scss and uno.config.ts still reference --theme-* variables. This prevents a clean single-source design system and makes brand updates drift across pages.

What Changes

  • Establish a single theme source for the project color system in src/static/styles/theme.scss
  • Re-define the core project palette as:
    • Primary: #2F7D32
    • Secondary: #1F2937
    • Tertiary: #F4FBF5
  • Require page and component layout accents to consume shared theme tokens instead of page-local hard-coded hex values
  • Align UnoCSS and uView theme mappings with the shared theme source

Impact

  • Affected specs:
    • design-theme-tokens
  • Affected code:
    • src/static/styles/theme.scss
    • src/uni.scss
    • uno.config.ts
    • shared agent-facing components that currently rely on page-local brand hex colors