Overview
LiveCodes offers extensive theming options:- App themes - Light and dark modes
- Editor themes - Monaco, CodeMirror, and CodeJar themes
- Syntax highlighting - Beautiful code colors
- Custom themes - Create your own
App Themes
Light and Dark Modes
- Dark Mode
- Light Mode
Optimized for low-light environments:
- Dark background
- High contrast
- Reduced eye strain
Switching Themes
Editor Themes
LiveCodes supports multiple editor themes for Monaco (default), CodeMirror, and CodeJar editors.Monaco Themes
VS Light
Classic Visual Studio Code light theme
VS Dark
Classic Visual Studio Code dark theme
High Contrast
Maximum contrast for accessibility
Custom Themes
Import VS Code themes
- Monokai
- Solarized Dark/Light
- Dracula
- One Dark Pro
- GitHub Light/Dark
- Nord
- Tokyo Night
CodeMirror Themes
When using CodeMirror editor:- Material Dark
- Gruvbox
- Dracula
- Ayu Light/Dark
- Nord
Setting Editor Theme
Custom Editor Themes
Monaco Custom Themes
Load custom VS Code themes:Theme URLs
Use external theme files:Theme Configuration
Via Config Object
Via URL Parameters
Per-Editor Themes
Set different themes for different editors:editor:theme@mode
editor:monaco,codemirror, orcodejar(optional)theme: Theme namemode:lightordark(optional)
Syntax Highlighting
Language-Specific Colors
Each theme provides colors for:- Keywords
- Strings
- Comments
- Functions
Token Scopes
Themes support granular token highlighting:- Variables
- Functions
- Classes
- Constants
- Operators
- Punctuation
- HTML tags
- CSS properties
- And more…
Accessibility
High Contrast Mode
For better visibility:- Maximum contrast ratios
- WCAG AAA compliant
- Clear element boundaries
- Accessible colors
Font Settings
Customize for readability:Theme Persistence
Your theme preference is saved:
- In browser localStorage
- Persists across sessions
- Per-project settings available
Theme Examples
Dark Theme Projects
Light Theme Projects
Creating Custom Themes
Use Theme Generator
Visit VS Code theme generators:
Theme Best Practices
Consider Audience
- Presentations: High contrast
- Tutorials: Clear, popular themes
- Personal: Your preference
Embedded Playground Themes
Control themes in embedded playgrounds:Theme URL Parameters
Troubleshooting
Theme not loading
Theme not loading
- Check theme URL is accessible
- Verify JSON format is correct
- Ensure CORS headers allow access
- Try a different CDN
Colors look wrong
Colors look wrong
- Verify theme matches app mode (dark/light)
- Check browser color settings
- Try different editor theme
Theme not persisting
Theme not persisting
- Check localStorage is enabled
- Clear browser cache
- Save in project config for permanent setting