UI Theme Switcher for Sketch ๐จ
April 2, 2026 ยท View on GitHub
UI Theme Switcher is a professional Sketch plugin designed to automate the transition between Light and Dark themes. It intelligently swaps Symbol Instances and Shared Styles across your Artboards based on your naming conventions.
๐ Features
- Symbol Swapper: Automatically replaces "Light" symbols with their "Dark" counterparts.
- New Frames/Artboards: Generate new frames with automatically applied "Light" symbols with their "Dark" counterparts.
- Recursive Style Switcher: Updates Shared Styles for vector shapes, groups, and stacks, no matter how deep they are nested.
- Smart Detection: Skips layers that are already in the target theme to prevent redundant operations.
- Detailed Feedback: Provides alerts if a matching symbol or style is missing from your document or library.
โน๏ธ How it works
1. Generate a new frame (artboard)
2. Switch pre-made styles and symbols
๐ท Naming Convention (Required)
For the plugin to work correctly, your Symbols and Shared Styles must follow a specific naming suffix. The plugin looks for matches at the end of the name.
1. Symbols
Your symbols must have identical paths/names, differing only by the suffix:
- Light Suffixes:
onLightorLightUI - Dark Suffixes:
onDarkorDarkUI
Example:
Symbol/abc/onLightโ๏ธSymbol/abc/onDarkIcons/Settings/LightUIโ๏ธIcons/Settings/DarkUI
2. Shared Styles (Layer Styles)
The same logic applies to Shared Styles for shapes and groups:
Background/Fill - onLightโ๏ธBackground/Fill - onDarkUI/Button/Primary/LightUIโ๏ธUI/Button/Primary/DarkUI
Note: The script is case-sensitive. Ensure the suffixes match exactly as shown above.
๐ Installation
- Download the repository as a
.zipfile. - Unzip the folder.
- Ensure the folder is named
UI-Theme-Switcher.sketchplugin. - Double-click the folder to install it in Sketch or drag it into
Plugins -> Manage Plugins....
๐ How to Use
- Select Artboards: Choose one or more Artboards on your canvas.
- Run Plugin: Go to
Plugins -> UI Theme Switcher. - Choose Action:
Switch Symbols to Dark/Light: Swaps symbol instances.Switch Styles to Dark/Light: Recursively updates all vector styles inside your selection.
- Check Results: A message will appear at the bottom of the screen. If any symbols/styles are missing, a detailed alert will show you exactly what needs to be added to your library.
โ Support & Resources
If you find this plugin helpful, feel free to explore more resources or support the development:
- Official Website: WhiteUI.Store
- Support the Project: Buy Me a Coffee
- Sketch Plugins: See more Sketch Plugins
License
This project is available under the MIT License.