53 lines
1.7 KiB
Markdown
53 lines
1.7 KiB
Markdown
# Themes
|
|
|
|
import ThemeDemo from '../../src/components/ThemeDemo.tsx';
|
|
|
|
LiveCodes comes with dark and light themes. In addition, a theme color can be set to change the app color.
|
|
|
|
## Theme
|
|
|
|
Dark/Light theme can be set in:
|
|
|
|
- UI, either:
|
|
|
|
- Dark/Light theme switch in toolbar
|
|
- Settings menu → Dark theme switch
|
|
|
|
- [Query params](../configuration/query-params.html.md): `?theme=dark` or `?theme=light`.
|
|
e.g. https://livecodes.io/?theme=light
|
|
|
|
- [Configuration object](../configuration/configuration-object.html.md): [`theme`](../configuration/configuration-object.html.md)#theme) property.
|
|
|
|

|
|
|
|
<div className="caption">LiveCodes dark theme</div>
|
|
|
|

|
|
|
|
<div className="caption">LiveCodes light theme</div>
|
|
|
|
## Theme Color
|
|
|
|
Similarly, a theme color can be set in:
|
|
|
|
- UI: Settings menu → Color
|
|
|
|
- [Query params](../configuration/query-params.html.md): `?themeColor={color}`.
|
|
e.g. https://livecodes.io/?themeColor=lightblue
|
|
|
|
- [Configuration object](../configuration/configuration-object.html.md): [`themeColor`](../configuration/configuration-object.html.md)#themecolor) property.
|
|
|
|

|
|
|
|
<div className="caption">Change theme color from UI</div>
|
|
|
|

|
|
|
|
<div className="caption">Custom theme color</div>
|
|
|
|
## Demo
|
|
|
|
<ThemeDemo></ThemeDemo>
|
|
|
|
:::info Note
|
|
Please note that editor themes can be set in the [editor settings](./editor-settings.html.md) or using the [`editorTheme`](../configuration/configuration-object.html.md)#editortheme) configuration option. |