Skip to content

Add a light theme that is applied before first paint - #1

Merged
jamiesun merged 1 commit into
mainfrom
dashboard-light-theme
Sep 22, 2026
Merged

jamiesun merged 1 commit into
mainfrom
dashboard-light-theme

Conversation

@jamiesun

Copy link
Copy Markdown
Contributor

Summary

  • Dashboard 增加浅色主题,首次访问跟随系统偏好,之后记住选择,并在首屏绘制前设好,避免闪一下深色。
  • 侧边栏可在浅色和深色之间切换。
  • 隐藏的资产弹层不再盖住整页([hidden] 被自定义 display 盖掉的问题)。

Test plan

  • 打开 /admin/,确认首屏颜色与系统偏好或上次选择一致,没有深色闪烁。
  • 点击「浅色模式 / 深色模式」,刷新后选择仍在。
  • 打开资产详情再关闭,页面不再被半透明遮罩盖住。

Made with Cursor

The dashboard was dark-only. Remember the choice and fall back to the system preference so the first paint matches, and stop the hidden asset modal from covering the page.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jamiesun
jamiesun merged commit 6b6a199 into main Sep 22, 2026
1 check passed
@jamiesun
jamiesun deleted the dashboard-light-theme branch September 22, 2026 04:42
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