-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Creating a new theme
n1474335 edited this page Aug 10, 2017
·
2 revisions
It's very easy to add a new theme, there are just a few simple steps:
-
Add a new
<option>
element toselect#theme
insrc/web/html/index.html
with the name of your theme.<option value="mytheme">My Theme</option>
-
Copy the contents of
src/web/stylesheets/themes/_dark.css
into a new file with the name of your theme i.e.src/web/stylesheets/themes/_mytheme.css
. -
Modify the JSDoc comment appropriately.
-
Change the class name attached to the
:root
selector to be the same as the value you gave the<option>
tag in step 1.:root.mytheme {
-
Add an import for your theme in
src/web/stylesheets/index.css
.@import "./themes/mytheme.css";
-
Change the values of the CSS properties to modify the theme to your taste.