Formatting

Good code example on end of the page.

These code conventions are inspired by the airbnb css / sass styleguide.

File Structure

For the file structure we use the 7-1-pattern but we’ve removed those folders that weren’t used at all. If needed these folders can be added. The full pattern looks like this:

  1. base/
  2. components/
  3. layout/
  4. pages/
  5. themes/
  6. abstracts/
  7. vendors/

to

  1. main.scss

The 7-1-pattern file structure was inspired by the sass guidelines.

Preprocessors

As CSS preprocessor we use SCSS due to the fact that we dealt with it in our lecture and already are familiar with it.

Vendors

For the app to look the same on every browser we use Normalize.css as basic definition for all elements.