| 1 |
------------------------------------------------------------------------------- |
| 2 |
Dojo Mobile Themes |
| 3 |
------------------------------------------------------------------------------- |
| 4 |
|
| 5 |
Dojo provides platform-specific themes for Android 2, Android 3/4, iOS and Blackberry. There is also a generic theme named "custom". |
| 6 |
|
| 7 |
All themes are generated using the Less CSS library (http://lesscss.org/). |
| 8 |
|
| 9 |
Building mobile themes |
| 10 |
---------------------- |
| 11 |
|
| 12 |
1. Install Node.js (http://nodejs.org/). |
| 13 |
|
| 14 |
2. Run compile.bat or compile.sh to generate all themes. |
| 15 |
|
| 16 |
You can also run cleanup.bat or cleanup.sh to remove all the generated css files. |
| 17 |
|
| 18 |
|
| 19 |
Creating a new theme from the Custom theme |
| 20 |
------------------------------------------ |
| 21 |
|
| 22 |
The 'custom' theme (i.e. mobile/themes/custom folder) is a generic grey theme. It is a good starting point for creating a new theme. All colors of this theme are derived from 2 colors defined at the beginning of themes/custom/variables.less. |
| 23 |
|
| 24 |
To create a new theme, you can change these colors (i.e. @lightColor and @darkColor) as well as other part of variables.less and then run the compile script. |
| 25 |
|
| 26 |
|