AbsaOSS / AbsaOSS/cps-shared-ui

Dark mode toggling mechanism

未關閉
#468 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
9
分支
6
平均合併
23 小時 46 分鐘
30 天內合併 PR
5

描述

We should support a three‑state theme toggle that defaults to the system setting via the [prefers-color-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-color-scheme) feature.

Users must also be able to override this behavior using an in‑app toggle (e.g., light, dark, or system). When a manual override is selected, the preference should be persisted in `localStorage` and take precedence over the system setting until changed.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。