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.

82 lines
2.4 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
7 years ago
  1. # Cripsy-Boilerplate
  2. Flat Sass Boilerplate to 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. add. Also it can be used to create multiples css files for each single site you
  22. need on a site oder
  23. You can order them and structure the output of the CSS-files.
  24. ## Getting Started
  25. ### Installation
  26. ```
  27. npm install crispy-boilerplate
  28. ```
  29. Main SCSS-File:
  30. ```
  31. @import
  32. "crispy";
  33. ```
  34. After this, include Mixins you need:
  35. ```
  36. @include crispy__*()
  37. ```
  38. To overwrite defaults simple adding your own config-file before import crispy:
  39. ```
  40. @import
  41. "config",
  42. "crispy";
  43. ```
  44. ### npm
  45. There are a few npm scripts in the package.json that you can you use to build
  46. your styles. Copy them and change the path. There is nothing special about them.
  47. ### Example
  48. You find an Example in "/src/example". It is also the site of the Documentation.
  49. In the Example there are additional Directories. These one are part of a Structure
  50. you might find helpful.
  51. #### Site
  52. Contains header, footer, Partials that use on are site or webapp. Header, Footer are
  53. not Classical Components, there often more Complex and have a special Brand.
  54. #### Templates
  55. Templates are for a single Site or a group of Sites, they are complex and the is
  56. no benfit so reuse them as Components.