fix(ui): Set color-scheme, notably to have proper scrollbar theming

Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
This commit is contained in:
Gabriel Dugny
2025-10-17 22:29:15 +02:00
parent ad498a2236
commit f520c0b1c4
5 changed files with 19 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="color-scheme" content="light dark" />
<meta
name="description"
content="Backstage is an open source framework for building developer portals"
+1
View File
@@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="color-scheme" content="light dark" />
<meta
name="description"
content="Backstage is an open source framework for building developer portals"
@@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="color-scheme" content="light dark" />
<meta
name="description"
content="Backstage is an open source framework for building developer portals"
+8
View File
@@ -247,6 +247,14 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[data-theme-mode="dark"] {
color-scheme: dark;
}
[data-theme-mode="light"] {
color-scheme: light;
}
}
@layer components;
+8
View File
@@ -39,4 +39,12 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[data-theme-mode='dark'] {
color-scheme: dark;
}
[data-theme-mode='light'] {
color-scheme: light;
}
}