mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Themes: Add color-scheme attribute to :root (#57001)
This commit is contained in:
@@ -16,6 +16,10 @@ export function getElementStyles(theme: GrafanaTheme2) {
|
||||
font-kerning: normal;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: ${theme.colors.mode};
|
||||
}
|
||||
|
||||
body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
@@ -167,7 +171,7 @@ export function getElementStyles(theme: GrafanaTheme2) {
|
||||
export function getVariantStyles(variant: ThemeTypographyVariant) {
|
||||
return `
|
||||
margin: 0;
|
||||
font-size: ${variant.fontSize};
|
||||
font-size: ${variant.fontSize};
|
||||
line-height: ${variant.lineHeight};
|
||||
font-weight: ${variant.fontWeight};
|
||||
letter-spacing: ${variant.letterSpacing};
|
||||
|
||||
Reference in New Issue
Block a user