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:
parent
bd8c38ed49
commit
e022625187
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user