refactor: replace hardcoded rgba white with theme-aware alpha variables
Add --alpha-* CSS variables (4-95%) to app.css that adapt to theme: - Dark themes: white-based rgba - Light themes: black-based rgba (auto-inverts for proper contrast) Mass-replaced 100+ instances of rgba(255,255,255,...) across 23 files with var(--alpha-*) for consistent theming support. This fixes borders, overlays, and UI elements being invisible or having poor contrast in light themes.
This commit is contained in:
1 parent
19be201564
commit
848322681d
23 files changed
+166
-121
No files matched your search
@@ -1366,8 +1366,8 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
background: var(--alpha-10);
|
||||
border: 1px solid var(--alpha-30);
|
||||
border-radius: 50%;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
@@ -1375,8 +1375,8 @@
|
||||
}
|
||||
|
||||
.artwork-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-color: rgba(255, 255, 255, 0.5);
|
||||
background: var(--alpha-20);
|
||||
border-color: var(--alpha-50);
|
||||
}
|
||||
|
||||
.artwork-btn.artwork-clear {
|
||||
|
||||
Reference in new issue
Block a user