sh4nks 91562e41cd Add some information about theming 9 years ago
..
src 948af5e2e2 Small design tweaks and fixes 9 years ago
Gulpfile.js 948af5e2e2 Small design tweaks and fixes 9 years ago
README.md 91562e41cd Add some information about theming 9 years ago
bower.json 45bbf162fa Use bower to handle the web assets. Fixes #154 9 years ago
info.json 91562e41cd Add some information about theming 9 years ago
package.json c5b2858862 Add bower to the npm dependencies 9 years ago
static 0ab7d24bf8 Move theme static files to flaskbb static folder. 9 years ago

README.md

INSTALLATION

Make sure that you have npm (nodejs) installed. You can get it from here.

This theme uses SASS (http://sass-lang.com/), a CSS preprocessor, for better development.

Before you can compile the source, you need to get a few dependencies first. Run (in the directory where this README is located):

  • npm install

and afterwards

  • node_modules/gulp/bin/gulp.js

TASKS

To get a list of all available tasks you can either read the Gulpfile.js or see the list below:

  • bower - installs all bower dependencies
  • update - updates all bower dependencies
  • icons - copies the icons (fonts) from the bower directory to the static/fonts directory.
  • sass - compiles all sass files found in the src/ directory and copies them to static/css
  • css - includes the task sass and will also add the css file pygemnts.css to the compiled file.
  • scripts - compiles the always needed javascript files (including jquery and bootstrap) into one.
  • editor-scripts - compiles all javascript files needed for the editor to one.
  • watch - watches of any changes happening in src/
  • default - runs all the above tasks in correct order.

You can run a task with gulp like this:

node_modules/gulp/bin/gulp.js watch

CREATING YOUR OWN THEME

If you want to create your own theme based on this theme you have to take care of a few things first.

  1. Create a new folder within the themes/ folder and give it the name of your theme.
  2. Copy the content of the aurora/ folder into your folder theme's folder.
  3. Create a new folder called static/ in your themes folder.
  4. (Optional) If you plan on modifying templates you also need to create a templates/ folder where your templates are located. To edit a template, you have to copy them over from flaskbb's template folder into your template folder
  5. Add some information about your theme using the info.json. Have look at aurora's info.json for an example.
  6. Edit the bower.json and package.json to your needs.
  7. Happy theming!

In the end your folder structure should look like this:

── example_theme/
    ├── bower_components
    │   └── ...
    ├── node_modules
    │   └── ...
    ├── src
    │   ├── styles.scss
    │   ├── _aurora.scss
    │   ├── _bootstrap-variables.scss
    │   ├── _button.scss
    │   ├── _category.scss
    │   ├── _editor.scss
    │   ├── _fixes.scss
    │   ├── _forum.scss
    │   ├── _management.scss
    │   ├── _misc.scss
    │   ├── _mixins.scss
    │   ├── _navigation.scss
    │   ├── _panel.scss
    │   ├── _profile.scss
    │   ├── _topic.scss
    │   └── _variables.scss
    ├── static
    │   ├── css
    │   ├── fonts
    │   └── js
    ├── templates
    │   └── layout.html
    ├── bower.json
    ├── Gulpfile.js
    ├── info.json
    ├── LICENSE
    ├── package.json
    └── README.md