- Edited
To make a theme, you should make the following:
- Fork ct.js and set up a dev environment. See the instructions in the ct.js repo.
- Design a theme in a .styl file inside the
src/styl
folder. Each theme file must begin withtheme
word.
It is better to start with an existing theme by copying it and modifying its variables. - Add the name of the theme to the list of built-in themes, to the
builtInThemes
array. - Add a translation key to the main localization file (which is English) and in any languages you speak. Optional but highly recommended.
- Make a theme for the code editor (monaco editor). These are placed in
src/node-requires/monaco-themes
(link to the repo). It is optional, but without one, the default Day theme for code will be used.
Then you can either live with this theme privately, he-he, or send a pull request to the ct.js repository. To do that, commit your theme to your repository, push it, then go to ct.js' pull requests page and create a new one. Consult GitHub's docs, if needed.