• Stars
    star
    341
  • Rank 123,733 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Themes to be used and generated with monaco-editor in web browser

monaco-themes

See extended demo at https://editor.bitwiser.in

A list of theme definitions to be used with monaco-editor in browser. See minimal demo

Usage

npm install monaco-themes

API

Using <script>
<script type="text/javascript" src="https://unpkg.com/monaco-themes/dist/monaco-themes.js"></script>
<script type="text/javascript">
    var tmThemeString = /* read using FileReader */
    var themeData = MonacoThemes.parseTmTheme(tmThemeString);
    monaco.editor.defineTheme('mytheme', themeData);
    monaco.editor.setTheme('mytheme');
</script>
Using webpack/node
const parseTmTheme = require('monaco-themes').parseTmTheme;

Directly using themes

With webpack
const monaco = /* require monaco */

import('monaco-themes/themes/Monokai.json')
  .then(data => {
      monaco.editor.defineTheme('monokai', data);
  })
Independently

Download this repository and extract and save themes directory in your project.

/* load monaco */

fetch('/themes/Monokai.json')
  .then(data => data.json())
  .then(data => {
    monaco.editor.defineTheme('monokai', data);
    monaco.editor.setTheme('monokai');
  })

More Repositories

1

medium-draft

📝 A medium like Rich Text Editor built on draft-js with a focus on keyboard shortcuts.
JavaScript
1,728
star
2

monaco-vim

VIM keybindings for monaco editor
JavaScript
214
star
3

medium-style-confirm

medium.com style confirm dialog
HTML
165
star
4

kattappa

A block based rich text editor.
JavaScript
106
star
5

monaco-ace-tokenizer

Syntax highlighting support for additional languages in monaco-editor
JavaScript
77
star
6

bitwiser

Bitwiser Jekyll theme
CSS
38
star
7

blurt

A javascript default alert() and prompt() replacement.
JavaScript
33
star
8

bitwiser-material

jekyll material theme
CSS
32
star
9

vscode-excalidraw

Excalidraw integration for vscode
TypeScript
31
star
10

monaco-emacs

Emacs keybindings for monaco-editor
TypeScript
25
star
11

react-sketchapp-boilerplate

A basic project to quickly get you up and running for creating a react-sketchapp
JavaScript
16
star
12

yapper

flask self learning blog.
Python
10
star
13

flask-web-starter-kit

Flask application with complete integration of gulp build system
HTML
10
star
14

react-ssr-example

Example Typescript React project with SSR
JavaScript
10
star
15

tvm

TV Show Manager is a chrome app that can be used to track your favorite TV shows
JavaScript
6
star
16

extractor

Python
6
star
17

codemirror-lsp

JavaScript
4
star
18

Jekyll-Read

Yet another jekyll theme.
CSS
4
star
19

hello-world-tutorial

Frontend hello world tutorial with webpack
JavaScript
4
star
20

draft-text-editor-tutorial

Source code of the draft-js-text-editor tutorial
JavaScript
4
star
21

querybuilder

Python
3
star
22

monaco-playground

Demo page for monaco themes/vim/emacs/syntax highlighting
JavaScript
2
star
23

automate-github-trending

Send email notification of Github's trending repositories
Python
2
star
24

medium-blog

JavaScript
1
star
25

python-automplete-server

An autocomplete server for python source code
Python
1
star