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.

72 lines
1.5 KiB

5 years ago
7 years ago
5 years ago
5 years ago
7 years ago
5 years ago
5 years ago
7 years ago
5 years ago
7 years ago
5 years ago
5 years ago
7 years ago
5 years ago
5 years ago
  1. # Crispy - Lightweight CSS / SCSS Framework
  2. ## Installation
  3. ```
  4. npm install crispy-css
  5. ```
  6. ## How it works
  7. ### SCSS
  8. ```
  9. @import
  10. "crispy";
  11. ```
  12. Now include Mixins you need. Components and Modifiziers only works if you include them,</
  13. ```
  14. @include crispy__core();
  15. @include crispy__modifiers();
  16. // components
  17. @include crispy__button();
  18. @include crispy__code();
  19. @include crispy__field();
  20. @include crispy__group();
  21. @include crispy__heading();
  22. @include crispy__hero();
  23. @include crispy__icon();
  24. @include crispy__media();
  25. @include crispy__modal();
  26. @include crispy__overlay();
  27. @include crispy__panel();
  28. @include crispy__table();
  29. ```
  30. For Custom Variables add a File before importing Crispy,
  31. ```
  32. @import
  33. "variables",
  34. "crispy";
  35. ```
  36. If you need all, mixins will be included,
  37. ```
  38. @import
  39. "crispy_all";
  40. ```
  41. Only need Core and Modifiziers?
  42. ```
  43. @import
  44. "crispy_minimal";
  45. ```
  46. ### CSS
  47. For using CSS you can use crispy.css for all Styles or crispy_mininmal.css without Components.
  48. ## Example
  49. 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.
  50. ### Site
  51. 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.
  52. ### Templates
  53. Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.