Dark mode #309
Dark mode
#309
-
Hi, is there a way to have a full dark theme? From the guide, I understand atm is only possible to have header and footer, but I might be wrong. |
Beta Was this translation helpful? Give feedback.
Answered by
vovayatsyuk
Aug 2, 2024
Replies: 1 comment 1 reply
-
Breeze Blank has dark theme support when the visitor setting is set to a prefer-dark color scheme. You can use it together with @respect-color-scheme: true;
// Trick to enable dark scheme for all visitors:
@media-dark: ~"(prefers-color-scheme: light), (prefers-color-scheme: dark)"; As you can see from the source code dark colors defined as CSS properties, so you can achieve the same effect without @base__text-color: @white
@base__background-color: @black;
// put other color variables here... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
apedicdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Breeze Blank has dark theme support when the visitor setting is set to a prefer-dark color scheme. You can use it together with
@media-dark
hack to get the dark theme for all visitors:View result
As you can see from the source code dark colors defined as CSS properties, so you can achieve the same effect without
(prefers-color-scheme: light), (prefers-color-scheme: dark)
trick: