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.

71 lines
1.5 KiB

4 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. # Lightweight CSS Framework for Building Apps and Websites
  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__hero();
  22. @include crispy__icon();
  23. @include crispy__media();
  24. @include crispy__modal();
  25. @include crispy__overlay();
  26. @include crispy__panel();
  27. @include crispy__table();
  28. ```
  29. For Custom Variables add a File before importing Crispy,
  30. ```
  31. @import
  32. "variables",
  33. "crispy";
  34. ```
  35. If you need all, mixins will be included,
  36. ```
  37. @import
  38. "crispy_all";
  39. ```
  40. Only need Core and Modifiziers?
  41. ```
  42. @import
  43. "crispy_minimal";
  44. ```
  45. ### CSS
  46. For using CSS you can use crispy.css for all Styles or crispy_mininmal.css without Components.
  47. ## Example
  48. 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.
  49. ### Site
  50. 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.
  51. ### Templates
  52. Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.