You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
8 years ago | |
|---|---|---|
| .. | ||
| utils | 8 years ago | |
| Enactors.styl | 8 years ago | |
| FullNoPreviewPrefsEditor.styl | 8 years ago | |
| FullPrefsEditor.styl | 8 years ago | |
| FullPreviewPrefsEditor.styl | 8 years ago | |
| PrefsEditor.styl | 8 years ago | |
| README.md | 8 years ago | |
| SeparatedPanelPrefsEditor.styl | 8 years ago | |
| SeparatedPanelPrefsEditorFrame.styl | 8 years ago | |
README.md
Overview
The "stylus" directory contains Stylus files for generating the Preference Framework stylesheets.
How to add a new theme
Define your own themes variable that looks like:
contrastThemes = {
"theme-selector": {
foregroundColor: #000000,
backgroundColor: #ffffff
}
...
}
When calling Stylus mixins defined in "utils/Themes.styl", pass in your own themes variable as a parameter, such as:
build-themes-Enactors(contrastThemes);
How to prevent grunt from compiling utility Stylus files
Some Stylus files may only contain mixins or functions for other Stylus files to import. Those files should not be compiled into CSS. To prevent the grunt task grunt buildStylus from compiling them, place these files in the "utils" directory.