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.

67 lines
2.2 KiB

7 years ago
6 years ago
6 years ago
6 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 if you used it for a Project. Often these changes cause a loss of
  5. performance and raise the propability of errors.
  6. Crispy Boilerplate uses also the following libraries:
  7. * normalize.css / [https://necolas.github.io/normalize.css/](https://necolas.github.io/normalize.css/)
  8. * opt / [https://octicons.github.com](https://octicons.github.com)
  9. [Documentation](https://crispy-boilerplate.org)
  10. ## Coding Style
  11. 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.
  12. ## Not Fancy but Small
  13. 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.
  14. ## Include
  15. Components and Helpers are organizes as Mixins, that makes it a little easier to
  16. to add Styles you need.
  17. ## Getting Started
  18. ### Installation
  19. ```
  20. npm install crispy-boilerplate
  21. ```
  22. Main SCSS-File:
  23. ```
  24. @import
  25. "crispy";
  26. ```
  27. After this, include Mixins you need:
  28. ```
  29. @include crispy__*()
  30. ```
  31. To overwrite defaults simple add your own config-file before importing crispy:
  32. ```
  33. @import
  34. "crispy",
  35. "config";
  36. ```
  37. ### Example
  38. You find an example in "/src/example", this is this documentation. In the given example there are additional directories. These ones are part of a structure which might be helpful for you.
  39. #### Site
  40. 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.
  41. #### Templates
  42. Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.