1.0.0 • Published 1 year ago

monaco-editor-themes v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install monaco-editor-themes

Usage

import * as monaco from "monaco-editor";
import Themes from "monaco-editor-themes";

// register themes into editor
Themes.register("light-theme-name-or-whatever", Themes.themes.light.github);
Themes.register("dark-theme-name-or-whatever", Themes.themes.dark.darcula);

const dom = undefined; // DOM element mounted by editor
const mode = "light"; // variables that can be toggled
// create editor with theme defined
monaco.editor.create(dom, {
  data: "foo",
  language: "javascript",
  theme: mode === "light" ? "light-theme-name-or-whatever" : "dark-theme-name-or-whatever",
});

Themes

Light

NameRepositoryAbout
atomvscode-theme-onelightVSCode Theme based on Atom's One Light theme.
githubgithub-vscode-themeGitHub's VS Code themes.
materialvsc-material-themeMaterial Theme, the most epic theme for Visual Studio Code.

Dark

NameRepositoryAbout
atomvscode-theme-onedarkVSCode Theme based on Atom's One Dark theme.
darculavscode-theme-darculaA theme for Visual Studio Code based on Darcula theme from Jetbrains IDEs.
githubgithub-vscode-themeGitHub's VS Code themes.
materialvsc-material-themeMaterial Theme, the most epic theme for Visual Studio Code.
monokai-promonokai-pro-vscodeA color scheme, customized user interface theme and complete icon set for Visual Studio Code.
one-dark-proOneDark-ProAtom's iconic One Dark theme for Visual Studio Code.

Contributing

  1. Clone code.
git clone git@github.com:dongchengjie/monaco-editor-themes.git
  1. Install dependencies.
npm install
  1. Place your vscode theme files under the vscode directory. You can export your current theme file by pressing Ctrl + Shift + P and executing the generateColorTheme command.

  2. Execute the build script, and the output will be located in the themes directory.

npm run build

License

MIT

1.0.0

1 year ago

0.0.1

1 year ago