• Stars
    star
    163
  • Rank 231,141 (Top 5 %)
  • Language
    CSS
  • Created almost 10 years ago
  • Updated about 3 years ago

Reviews

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

Repository Details

πŸ“ A large collection of Code Mirror themes for your coding pleasure

CodeMirror Themes

CodeMirror is a great online editor, however, it's lacking some good themes. So, here are a crap ton for your coding pleasure.

I used this theme generator to export themes from editors such as Sublime Text, Ace Editor and TextMate.

If something is not working or you would like a new feature, please use the issues page.

Demo

Here's a theme I extracted from one of my favorite Sublime Themes.

Click HERE for a demo where you can switch between various themes on the fly. A few modifications were made to the base styling to make the default theme look better; e.g. line-heights, fonts, etc. Some version have a default version included (from CodeMirror).

Installation

You can install via npm and simply refer to the theme you want within the themes directory.

  $ npm i code-mirror-themes --save

You can install via bower and simply refer to the theme you want within the themes directory.

  $ bower i code-mirror-themes --save

You can simply fork and clone (or download) the repo into your local directory and check out the themes folder for the CSS files.

  $ git clone https://github.com/FarhadG/code-mirror-themes
  $ cd code-mirror-themes/themes

You can also run a server to run index.html for a demo showcasing all of the themes.

Usage

Once you have the desired CSS file, you simply configure your CodeMirror editor and pass in the theme's name as the CodeMirror theme name (use lowercase and treat spaces with hyphens). For example, here's a simple configuration.

// Theme Name: Bespin
var myCodeMirror = CodeMirror(document.body, {
    mode: 'javascript',
    lineNumbers: true,
    theme: 'bespin'
});

// Theme Name: All Hallow Eve
var myCodeMirror = CodeMirror(document.body, {
    mode: 'javascript',
    lineNumbers: true,
    theme: 'all-hallow-eve'
});

GUI Interface

Also, here's a LINK for making SublimeText and TextMate themes with a visual interface. After saving the file, you can, then, take the file and run this theme generator for converting the XML to CodeMirror's CSS.

Options

I'll be adding more features; that said, if you'd like a feature, let me know so that I'll try and implement it into future updates.

More Repositories

1

init

❗ Go to the first (initial) commit of any GitHub repo
HTML
287
star
2

ui-react

πŸ“– U&I with React β€” UI components for you & I
JavaScript
95
star
3

codeMirror-aceEditor-theme-generator

CodeMirror & Ace Editor themes generated from a GUI and/or Sublime Text & TextMate themes
JavaScript
48
star
4

repo-card

πŸ“œ Give your repos some freshness with a Repo Card
JavaScript
36
star
5

mesh-code-editor

βœ’οΈ A sleek, real-time & collaborative online code editor for HTML, CSS, and JavaScript
CSS
27
star
6

webgl-picking

Two different WebGL picking models using color and alpha encoding
JavaScript
14
star
7

webgl-shadows

Shadow mapping in WebGL using an off-screen frame buffer
JavaScript
11
star
8

bootstrap-jade-stylus-gulp-boilerplate

A minimal seed comprising of Bootstrap, Jade, Stylus, Gulp and some basic imports, like Google Webfonts, FontAwesome, etc.
JavaScript
9
star
9

javascript-summons

A collection of Javascript exercises to get you grooving.
JavaScript
8
star
10

2048-cube

πŸ“¦ 2048 Cube: An interactive 3D cube version of 2048 with HTML & CSS3
CSS
6
star
11

famous-webgl-events

WebGL and DOM events with Famous
JavaScript
3
star
12

famous-divider

Famo.us [0.3] divider for breaking any app (your app) into as many rows & columns
JavaScript
3
star
13

theme-wrap

πŸ“¦ Package your React apps with your own hand crafted Theme Wrap
JavaScript
3
star
14

famous-mixed-mode-examples

A sample of examples for the new Famo.us WebGL Engine (raw core)
JavaScript
2
star
15

coffeescript-summons

A collection of CoffeeScript exercises to get you grooving.
CoffeeScript
2
star
16

grid

A lean, customizable and semantic CSS grid builder using Stylus
JavaScript
1
star
17

CSSJSON

Converts CSS to JSON and back.
JavaScript
1
star
18

famous-webgl-specular

WebGL Mesh specular & glossiness maps
JavaScript
1
star
19

script-tag-data

πŸ“Ž Set and read data from a JavaScript <script> tag
JavaScript
1
star
20

scroll-share

A Chrome extension, bookmarklet or script to share websites to a specific position
HTML
1
star
21

webgl-lights

Basic lights using the Phong reflection model in WebGL with phong shading
JavaScript
1
star
22

bootstrap-swig-stylus-gulp-boilerplate

A minimal seed comprising of Bootstrap, Swig, Stylus, Gulp and some basic imports, like Google Webfonts, FontAwesome, etc.
JavaScript
1
star