# Dark Mode

Dark mode is seamlessly integrated into Cwicly and requires minimal user intervention.

The user’s system preferences are automatically detected but a switch action is provided for manual selection.

Cwicly global colours support light and dark mode.

Light mode colours are applied by default.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FTnXV4FS8uFXRV0XN1jZP%2Fdark%20mode%20pwetty.jpg?alt=media&#x26;token=065bcdbc-d9fc-4563-872d-fa3eba12eaa8" alt=""><figcaption></figcaption></figure>

## Light/Dark Mode&#x20;

A  toggle is provided so that you can easily switch between light and dark modes.

* In the Editor, navigate to the Cwicly Header Toolbar.
* Click the Light/Dark Mode toggle to switch between Light and Dark modes.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FrvUfhJvKbivZfECbjvub%2Fswitch%20to%20dark%20mode.jpg?alt=media&#x26;token=4c519ee5-01cf-4f40-bdd5-46c099c637fe" alt=""><figcaption></figcaption></figure>

## Apply Light Mode&#x20;

You can apply a light mode value to a Global Colour.&#x20;

* Select a global colour.
* Click the Light/Dark toggle in the Cwicly Header Toolbar to change to light mode.
* Choose a suitable colour.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FJBCpTuBeuBRCVYHDY9ZN%2Fswitch%20to%20light%20mode.jpg?alt=media&#x26;token=db7e12e6-33bf-4e68-a1bb-ec6a68b5935b" alt=""><figcaption></figcaption></figure>

## Apply Dark Mode&#x20;

You can apply a dark mode value to a Global Colour.&#x20;

* Select a global colour.
* Click the Light/Dark toggle in the Cwicly Header Toolbar to change to dark mode.
* Choose a suitable colour.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FrvUfhJvKbivZfECbjvub%2Fswitch%20to%20dark%20mode.jpg?alt=media&#x26;token=4c519ee5-01cf-4f40-bdd5-46c099c637fe" alt=""><figcaption></figcaption></figure>

## Dark Mode Switch Actions

The Dark Mode switch actions enables you to offer a user-initiated, accessibility focused switch between light and dark display modes for your website visitors.&#x20;

User preference is remembered.

### Ready-made Toggle

You can use the ready-made toggle provided.

* The URL link below will take you to a Discourse page where you can download the button.

{% embed url="<https://discourse.cwicly.com/t/dark-mode-switcher/4349?u=araminta>" %}

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FRHdMtgxVi75e3hZ9suSK%2Fdiscourse.jpg?alt=media&#x26;token=843a9c46-0282-40d0-9b5a-a1ad62c08358" alt=""><figcaption></figcaption></figure>

* Drag and drop on to your page.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2Fkrz35sVs6kzi1yZkjeXP%2Fready%20made%20toggle.jpg?alt=media&#x26;token=d4fb0ed2-0363-42e7-916a-0b1070599d88" alt=""><figcaption></figcaption></figure>

* It should look something like this:

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FGsrA48doOKRE8X8Dy2OL%2Fready%20made%20toggle%20canvas.jpg?alt=media&#x26;token=8d1edbcf-ee36-4083-b14b-01113b20d068" alt=""><figcaption></figcaption></figure>

### Custom Toggle

Or create your own.

* Select an appropriate block.
* Open the link settings.
* Set Type to Action.
* Set Action to Toggle (Dark Mode).

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FiIXqlreaNNZosuEQl2Iw%2Ftoggle%20dark%20mode%20manual.jpg?alt=media&#x26;token=696d913d-7250-4294-897a-098cf3232d83" alt=""><figcaption></figcaption></figure>

## Force Colour Scheme

You can force a specific mode on a block irrespective of the mode currently applied.

* Select a block.
* In the Block Inspector, hover over the Force Colour Scheme icon.
* Apply the desired mode.

Whether light or dark mode is selected, the forced mode will override.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FkX7hfWdd636vbzvATPJh%2Fforce%20dark%20mode.jpg?alt=media&#x26;token=c3adba4a-4afc-4c12-a42e-14bf85a60453" alt=""><figcaption></figcaption></figure>
