Merge pull request #31469 from Believe-SA/blv/color-scheme

fix(ui): Set color-scheme, notably to have better default scrollbar theming
This commit is contained in:
Ben Lambert
2025-11-04 13:17:24 +01:00
committed by GitHub
6 changed files with 24 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/ui': patch
---
Set the color-scheme property depending on theme
+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;
}
}