This is a boilerplate project to get you started with the essentials to create your new theme as an extension. Clone this repo and start customizing your theme by modifying main.less
.
In order to install your new theme, you need to publish it to a git repo and install it via the extension manager.
We will use this boilerplate to illustrate a simple workflow.
- Install the boilerplate theme by going through Brackets extension manager and install it using the URL
https://github.com/Brackets-Themes/BoilerPlate
. - Or you can bundle it up as a zip and drag the zip into the extension manager.
- Select the Brackets View menu and click Themes…
- Choose "Title for my theme" to select the boilerplate as the theme.
- That's it!
Now that you have installed and selected boilerplate theme, you can customize it. Since the theme was installed as an extension, you will need to navigate to the extensions folder to get to the theme. Go ahead and do that and open main.less, and start adding your favorite colors. Notice that when you make changes to main.less, the changes will automatically be applied when you save those changes. I personally do all my customization to main.less right from Brackets so that I can see my changes right as I work.
- The most important bit, the theme file. This can be a css or a less file with all your css rules. This is the file you modify when you want to make your own custom theme. In BoilerPlate, it is
main.less
. - It needs a
package.json
, the same way all other Brackets extensions need one. - The
package.json
must have atheme
object. This object as of right now contains afile
field, which is the file name; in the case of BoilerPlate, it is "main.less". Another field isdark
, which is a boolean that tells Brackets to setup an all around dark theme. - It must have a
name
field, with the name for the theme. In BoilerPlate the name is simply "boilerplate". - Brackets 0.44 and ealier required themes to include an empty main.js file in order to be installed. This is no longer the case with Brackets 1.0, and it not included in BoilerPlate. However, you may still include this file for short-term support of older releases.