Changes between Version 28 and Version 29 of DeveloperGuidelines/Themes
- Timestamp:
- 02/23/18 11:52:19 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Themes
v28 v29 29 29 30 30 To create a new theme: 31 1. If not already using a template create one: {{{/modules/templates/<templatename>}}} 32 1. Create these files in your templates folder: 33 * {{{/modules/templates/<templatename>/__init__.py}}} - this can be empty but must be present. 34 * {{{/modules/templates/<templatename>/css.cfg}}} - list of CSS files to use in Debug mode, or be compressed together for the normal non-debug mode by 35 the Build script ({{{static/scripts/tools/build.sahana.py}}}) into: 36 * {{{/static/themes/<themename>/eden.min.css}}} 31 37 1. Specify the Theme name in your template's {{{/modules/templates/<templatename>/config.py}}}: 32 38 * {{{settings.base.theme = "themename"}}} 33 39 1. Create a new folder to hold the theme elements: 34 * {{{/static/themes/<themename>}}} which will usually contain these files: {{{layout.css}}}, {{{style.css}}} (it is normally assumed that {{{/static/themes/default/css/widgets.css}}} is also used)40 * {{{/static/themes/<themename>}}} which will usually contain a file {{{style.css}}} (it is normally assumed that {{{/static/themes/default/css/widgets.css}}} is also used at a minimum, although using more of the default Foundation theme is recommended) 35 41 * {{{/static/themes/<themename>/img}}} 36 1. If not already using a template create one: {{{/modules/templates/<templatename>}}}37 1. Create these files in your templates folder:38 * {{{/modules/templates/<templatename>/__init__.py}}} - this can be empty but must be present.39 * {{{/modules/templates/<templatename>/css.cfg}}} - list of CSS files to use in Debug mode, or be compressed together for the normal non-debug mode by the Build script ({{{static/scripts/tools/build.sahana.py}}}) into:40 * {{{/static/themes/<themename>/eden.min.css}}}41 42 * {{{/modules/templates/<templatename>/views/layout.html}}} - overall layout of the HTML. 42 43