Code Monkey home page Code Monkey logo

brackets-themes's Introduction

Brackets-Themes

Apply CodeMirror themes to Brackets' file editor via the Themes menu.

Features

  • Automatic loading of CodeMirror's themes as shipped with Brackets.
  • Automatic loading of custom themes. For custom themes 101 primer, please ready bolow. Handy if you want to create your own themes or already have themes you want to keep when you upgrade brackets.

Screenshot

Visual Studio theme Visual Studio theme

Monokai Dark Soda custom theme by @simpleshadow. Monokai Dark Soda theme

Custom themes 101 guide

Custom themes are codemirror's themes, so you will need to be familiar with codemirror's theme guidelines. I provide a set of steps to get you started below, but for more details please navigate to http://codemirror.net/doc/manual.html and search for "theme".

Codemirror's themes are css files. Important requirement is that the file name has to match your css class definition. E.g. If your theme file is called "default", then your primary css class name needs to be "default". Codemirror's guidelines require that the actual css class name starts with ".cm-s-", so your fully qualified css class name will be ".cm-s-default".

To get you started, you could use the already existing custom theme "default.css". Let's do the following.

  • Open the custom theme directory. Navigate to your themes manager directory (extensions directory/themes) and you will find custom themes in the "theme" directory. Brackets provides a quick way of accessing your extensions directory... Help > Show Extensions Folder.
  • Copy and paste the file "default.css" and rename it to "my-theme.css".
  • Open "my-theme.css" and replace "default" with "my-theme", which should end up looking like ".cm-s-my-theme". You will also have a second class ".CodeMirror", just leave it there and the net result will look like ".cm-s-my-theme.CodeMirror".
  • In "my-theme.css", change "background-color: #F8F8F8;" to "backgound-color: red;".
  • Relaunch brackets, open a JavaScript file and you should see the document with a red background.

    For details on what can be customized, please navigate to http://codemirror.net/doc/manual.html and search for "Customized Styling". As you will notice, the documentation isn't exhautive but they suggest you use "codemirror.css" as a reference. Give it a try, it is pretty straight forward.

    If you have a cool theme you created and want to share, please send it my way and I will gladly add it to the custom themes.

FAQ

  • Why is only the editor getting themes?
    • Themes that are currently provided are from CodeMirror. It is possible to theme Brackets beyond the editor, but it requires CSS to customize it. You can take a look at theme/visual-studio-ex.css to see how @jacse has accomplished this.

How to

Links

Brackets? Right here... http://brackets.io/
Brackets github? Right here... https://github.com/adobe/brackets

Contact me

If you have any issues or want to just drop in a line, you can use my personal email at [email protected]

License

Licensed under MIT

brackets-themes's People

Contributors

miguelcastillo avatar simpleshadow avatar

Watchers

Lam Nguyen avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.