0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 05:02:57 +01:00

Set the color-scheme property based on Wagtail theming support. Fix #11309

This commit is contained in:
Thibaud Colas 2024-01-17 09:28:12 +00:00 committed by Sage Abdullah
parent bd8c38ed49
commit e022625187
No known key found for this signature in database
GPG Key ID: EB1A33CC51CC0217

View File

@ -168,13 +168,18 @@ module.exports = {
...transparencies,
...generateColorVariables(staticColors),
...generateThemeColorVariables(colorThemes.light),
'color-scheme': 'light',
},
'.w-theme-system': {
'@media (prefers-color-scheme: dark)': generateThemeColorVariables(
colorThemes.dark,
),
'@media (prefers-color-scheme: dark)': {
...generateThemeColorVariables(colorThemes.dark),
'color-scheme': 'dark',
},
},
'.w-theme-dark': {
...generateThemeColorVariables(colorThemes.dark),
'color-scheme': 'dark',
},
'.w-theme-dark': generateThemeColorVariables(colorThemes.dark),
});
}),
/** Support for aria-expanded=true variant */