跳转到主要内容

Dark and Light Theme Switch

This pattern shows how to create a switch for your website that allows changing between light and dark themes, and saving that preference for subsequent visits.

{% Aside 'important' %} This pattern uses the easings from Open Props {% endAside %}

Full article · Video on YouTube · Source on Github