@md5dalton
Posted
Hello Mustapha 👋
This is an issue that you are going to come around multiple times in websites that use dark background colors, especially if you're implementing a dark mode theme toggle. But in this use case you don't plan on changing the background colors, so you're in luck, all you need to do is apply the dark background color in internal styles that you'll define in <head>
:
<styles>
body {
background-color: #000;
}
</styles>
Please note that you should use a color value (color name, RGB, HEX or HSL) and not use a CSS custom property defined in external styles otherwise it won't work as expected.
Good work on your solution by the way 👌
Marked as helpful
@Farouk-ayo
Posted
@md5dalton yh, that really helps, thank you👍.