> For the complete documentation index, see [llms.txt](https://sygnal.gitbook.io/sygnal-webflow-components/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sygnal.gitbook.io/sygnal-webflow-components/cc/sygnal-layout/darkmode.md).

# DarkMode

Switch dark mode and light mode automatically.

{% hint style="warning" %}
**CONCEPTUAL.**&#x20;
{% endhint %}

## Goals&#x20;

* Present a simple toggle switch, place and style where you like&#x20;
* Initial state&#x20;
  * Auto-detects prefers-dark-mode state
  * If changed, remembers your prior state by localstorage&#x20;
* Application
  * Applys a class on body&#x20;
  * ? Switches variable modes&#x20;
