HerrHase 66c2fe0a3b | 6 years ago | |
---|---|---|
dest | 6 years ago | |
src | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE | 7 years ago | |
README.md | 6 years ago | |
package-lock.json | 6 years ago | |
package.json | 6 years ago | |
webpack.config.js | 6 years ago |
Flat Sass Boilerplate to give you a amount of Basic Settings, Components, Helpers, Mixins and Functions. It uses also the following Libraries,
Many Boilerplates and also Frameworks, are trying to hard adding styles that are most time will be overwritten to make it work for you. This causes a loss in Performance and more Fighting with the Framework and the Documentation.
The Boilerplate uses as Coding Style http://getbem.com/, but as a more simpler idea of it. One of the Benefits of BEM is that you create Components and can reuse them. But one the other hand it can be really Strange if you overthinking it.
Components are created to give you a Structure and a Basic set of Styles and not that they look fancy. The Idea is to extend each Compontent and save up a Bunch of CSS Code, and so get more Performance and less Errors. Of Course is really Fancy to get more Performance and less Errors.
Components and Helpers are organizes as Mixins, that makes it a little easier to add. Also it can be used to create multiples css files for each single site you need on a site oder
You can order them and structure the output of the CSS-files.
npm install crispy-boilerplate
Main SCSS-File:
@import
"crispy";
After this, include Mixins you need:
@include crispy__*()
To overwrite defaults simple adding your own config-file before import crispy:
@import
"config",
"crispy";
There are a few npm scripts in the package.json that you can you use to build your styles. Copy them and change the path. There is nothing special about them.
You find an Example in "/src/example". It is also the site of the Documentation. In the Example there are additional Directories. These one are part of a Structure you might find helpful.
Contains header, footer, Partials that use on are site or webapp. Header, Footer are not Classical Components, there often more Complex and have a special Brand.
Templates are for a single Site or a group of Sites, they are complex and the is no benfit so reuse them as Components.