In this article, we'll learn how to make a toggle switch with just CSS. We'll also learn how a pseudo-element is used to inject content into a page. The end result will give you the ability to change a website's theme from a light to a dark mode.
6 Comments
Sort: