You can use monaco themes to style the lean webeditor. Take a look at these sample monaco themes. For testing, you can upload your custom theme directly in the settings of the webeditor. The upload expects a valid JSON monaco theme.
To add a theme to the editor permanently, you need two steps:
- Add the json file here (in the
themesfolder) - Add an
optionto theselectinSettings.tsx. Make sure that thevalueof theoptionmatches the filename (without '.json')!
Now you can select the theme from the Settings.
Here is a list of some variables from the theme which are used for the editor interface:
- The top bar and menu use the
--vscode-menu-XXXvariables. - The pop-ups (loading, settings, etc.) use
--vscode-input-XXXand--vscode-button-XXX --vscode-textPreformat-foregroundis used for code in pop-ups.--vscode-textLink-foregroundis used for links in pop-ups.--vscode-editorError-foregroundis used for error message in pop-ups.--vscode-backgroundis used for the website's background.--vscode-inputOption-activeForegroundand--vscode-widget-shadoware also used.