Lightweight CSS Framework for Building Apps and Websites https://crispy-css.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.2 KiB

7 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
6 years ago
7 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
6 years ago
7 years ago
7 years ago
7 years ago
6 years ago
6 years ago
6 years ago
  1. # Cripsy-Boilerplate - Less is more
  2. Flat Sass Boilerplate gives you an amount of basic settings, components, helpers, mixins and functions.
  3. The problem of most frameworks is they trying to hard adding a lot of styles,
  4. which has to be customized and documented. Often these changes cause a loss of
  5. performance and raise the propability of errors.
  6. It uses also the following libraries:
  7. * normalize.css / [https://necolas.github.io/normalize.css/](https://necolas.github.io/normalize.css/)
  8. * reflex-grid / [http://reflexgrid.com/docs/](http://reflexgrid.com/docs/)
  9. * opt / [https://octicons.github.com](https://octicons.github.com)
  10. [Documentation](https://crispy-boilerplate.org)
  11. ## Coding Style
  12. The boilerplate uses as coding style [http://getbem.com/](BEM), 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.
  13. ## Not Fancy but Small
  14. Components are created to give you a structure and a basic set of styles and not to look fancy. The idea is to extend each component and save time to write a bunch of extra CSS code and therefore get more performance while minimize the causes of errors. Of Course is really Fancy to get more Performance and less Errors.
  15. ## Include
  16. Components and Helpers are organizes as Mixins, that makes it a little easier to
  17. to add Styles you need.
  18. ## Getting Started
  19. ### Installation
  20. ```
  21. npm install crispy-boilerplate
  22. ```
  23. Main SCSS-File:
  24. ```
  25. @import
  26. "crispy";
  27. ```
  28. After this, include Mixins you need:
  29. ```
  30. @include crispy__*()
  31. ```
  32. To overwrite defaults simple add your own config-file before importing crispy:
  33. ```
  34. @import
  35. "config",
  36. "crispy";
  37. ```
  38. ### Example
  39. You find an example in "/src/example". The documentation is also there. In the given example there are additional directories. These ones are part of a structure which might be helpful for you.
  40. #### Site
  41. Contains header, footer, partials that are used on a site or webapp. Header and footer are not classical components, there often more complex and have a special brand.
  42. #### Templates
  43. Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.