Skip to content

feat(fe): overhaul UI theme, visual hierarchy and form layout - #42

Open
wgzhao wants to merge 4 commits into
masterfrom
feat/frontend-ux-enhancement
Open

feat(fe): overhaul UI theme, visual hierarchy and form layout#42
wgzhao wants to merge 4 commits into
masterfrom
feat/frontend-ux-enhancement

Conversation

@wgzhao

@wgzhao wgzhao commented Jul 29, 2026

Copy link
Copy Markdown
Owner

feat(fe): overhaul UI theme, visual hierarchy and form layout

Why: 前端长期存在深色主题对比度不足、页面视觉层次扁平、
form label 发虚、sys-settings 布局不合理等问题

What:

  • Redesign modern-theme with GitHub-inspired dark theme and refined light
    theme (Tailwind Slate palette). Dark: three-tier surface hierarchy
    (0D1117/161B22/1C2128), readable accent colors. Light: cleaner Slate
    grays, modern blue/violet accent palette
  • Switch default theme to light for better readability on regular monitors
  • Add visual hierarchy anchors: page-header accent line, section-card
    left border, table first-column weight
  • Fix form field comfort: global CSS reduces wasted outlined-input
    padding when label is external
  • Redesign sys-settings layout: tri-column config cards + full-width
    template editor + embedded save button
  • Make theme toggle discoverable with visible label instead of icon-only
  • Standardise field-label colour (remove opacity) for crisper form labels

Impact: all frontend pages affected by theme/overrides changes

Test: bun build:frontend passes

Co-Authored-By: Claude noreply@anthropic.com

wgzhao and others added 4 commits July 29, 2026 16:57
Why: 前端长期存在深色主题对比度不足、页面视觉层次扁平、
form label 发虚、sys-settings 布局不合理等问题

What:
- Redesign modern-theme with GitHub-inspired dark theme and refined light
  theme (Tailwind Slate palette). Dark: three-tier surface hierarchy
  (0D1117/161B22/1C2128), readable accent colors. Light: cleaner Slate
  grays, modern blue/violet accent palette
- Switch default theme to light for better readability on regular monitors
- Add visual hierarchy anchors: page-header accent line, section-card
  left border, table first-column weight
- Fix form field comfort: global CSS reduces wasted outlined-input
  padding when label is external
- Redesign sys-settings layout: tri-column config cards + full-width
  template editor + embedded save button
- Make theme toggle discoverable with visible label instead of icon-only
- Standardise field-label colour (remove opacity) for crisper form labels

Impact: all frontend pages affected by theme/overrides changes

Test: bun build:frontend passes

Co-Authored-By: Claude <noreply@anthropic.com>
…mponents

Why: 大量 scoped CSS 只用于布局(flex、gap、padding、margin、font),
可以改用 UnoCSS utility 类,减少 CSS 体积,提高可维护性。

What:
- Install UnoCSS + unocss-preset-vuetify, add to vite config and main.ts
- Refactor 14 files: replace layout CSS with UnoCSS utility classes in
  template, keep only visual CSS (gradients, theme variables, :deep overrides)
- Remove ~340 lines of redundant scoped CSS across all refactored files
- Increase light-mode card border opacity for better card separation

Files refactored: login, dashboard, change-password, logs, dict,
data-insight, monitor, cluster, AddSource, BatchUpdate, FillbackDialog

Test: bun build:frontend passes

Co-Authored-By: Claude <noreply@anthropic.com>
Why: main.ts has imported uno.css since b0f9b93 but the UnoCSS plugin
was never registered, so bun build:frontend fails with 'Rolldown failed
to resolve import uno.css' on this branch.

What:
- Register UnoCSS() plugin in vite.config.js
- Sync unocss deps into bun.lock, add root yarn.lock

Impact: fixes frontend production build for the whole branch

Test: bun build:frontend passes, vue-tsc reports no errors

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant