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.

79 lines
2.3 KiB

7 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. # Cripsy-Boilerplate
  2. Flat Sass Boilerplate give you a amount of Basic Settings, Components, Helpers,
  3. Mixins and Functions. It uses also the following Libraries,
  4. * normalize.css / [https://necolas.github.io/normalize.css/](https://necolas.github.io/normalize.css/)
  5. * reflex-grid / [http://reflexgrid.com/docs/](http://reflexgrid.com/docs/)
  6. * opt / [https://octicons.github.com"](https://octicons.github.com)
  7. Many Boilerplates and also Frameworks, are trying to hard adding styles that
  8. are most time will be overwritten to make it work for you. This causes a loss in
  9. Performance and more Fighting with the Framework and the Documentation.
  10. ## Coding Style
  11. The Boilerplate uses as Coding Style [http://getbem.com/](BEM), but as a more
  12. simpler idea of it. One of the Benefits of BEM is that you create Components and
  13. can reuse them. But one the other hand it can be really Strange if you overthinking it.
  14. ## Not Fancy but Small
  15. Components are created to give you a Structure and a Basic set of Styles and
  16. not that they look fancy. The Idea is to extend each Compontent and save up
  17. a Bunch of CSS Code and so get more Performance and less Errors.
  18. Of Course is really Fancy to get more Performance and less Errors.
  19. ## Only Include if you need it
  20. Components and Helpers are organizes as Mixins, that makes it a little easier to
  21. to add Styles you need.
  22. ## Getting Started
  23. ### Installation
  24. ```
  25. npm install crispy-boilerplate
  26. ```
  27. Main SCSS-File:
  28. ```
  29. @import
  30. "crispy";
  31. ```
  32. After this, include Mixins you need:
  33. ```
  34. @include crispy__*()
  35. ```
  36. To overwrite defaults simple adding your own config-file before import crispy:
  37. ```
  38. @import
  39. "config",
  40. "crispy";
  41. ```
  42. ### npm
  43. There are a few npm scripts in the package.json that you can you use them to build
  44. your scss. Copy them and change the path.
  45. ### Example
  46. You find an Example in "/src/example". It is also the site of the Documentation.
  47. In the Example there are additional Directories. These one are part of a Structure
  48. you might find helpful.
  49. #### Site
  50. Contains header, footer, Partials that use on are site or webapp. Header, Footer are
  51. not Classical Components, there often more Complex and have a special Brand.
  52. #### Templates
  53. Templates are for a single Site or a group of Sites, they are complex and the is
  54. no benfit so reuse them as Components.