Site & theme widget

Color Scheme Switch

A sun and moon switch that lets visitors choose light or dark mode.

Build it with your AI

“Add a dark mode switch to the header, next to the menu.”

Live demo

Where it works

A sun / moon switch for visitors. It appears once dark mode is on in the Design System, where each color gets a dark value. See the Design System →

Settings

7 settings in three tabs

Every setting below is in the editor — and available to your AI through get_widget_schema.

Content

3 settings

Switch

Style

Accessible label

Alignment

Design

4 settings

Switch

Size

Icon color

Background

Switch color when dark

Behaviour

shared

On every element

Spacing & position

Background & border

Animations

Motion & effects

Scroll & mouse effects

Visibility

Conditions

Interactions

Attributes & CSS

Build it with AI

Just describe what you want

Your AI looks up the Color Scheme Switch settings over MCP and writes the element for you — real, editable and on brand.

Claude · connected to your site

You

Add a dark mode switch to the header, next to the menu.

Claude · using Uncoder

Done — it’s on your site and fully editable.

  • Color Scheme Switch added where you asked
  • Styled with your Design System
  • Checked on tablet and mobile
  • get_widget_schema
  • edit_elements
  • audit_page

What the AI writes

scheme-switch.jsonJSON
{ "type": "scheme-switch", "settings": { "style": "switch", "label": "Dark mode" } }

Free · GPL · No account

Your next site is one prompt away

Install Uncoder, connect your AI and describe what you want. Every page it builds stays yours to edit.