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.

125 lines
7.3 KiB

4 years ago
  1. <!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Getting started! | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body class="page"><header id="header" class="header header--fixed background-color-info"><div class="container"><div class="grid align-center"><div class="col-12 col-md-4"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-12 col-md-8"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getting-started.html" class="text-color-white">Getting started!</a></li><li class="group__item"><a href="core.html" class="text-color-white">Core</a></li><li class="group__item"><a href="components.html" class="text-color-white">Components</a></li><li class="group__item"><a href="helpers.html" class="text-color-white">Helpers</a></li><li class="group__item"><a href="mixins.html" class="text-color-white">Mixins</a></li><li class="group__item"><a href="functions.html" class="text-color-white">Functions</a></li></ul></nav></div></div></div></header><main class="container"><div class="grid"><div class="col-12"><header class="header"><h1 class="padding-top-4 padding-bottom-2 text-center">Getting started!</h1></header><h2 class="margin-bottom-1">Installation</h2><hr class="marginless margin-bottom-2"/><pre class="code"><code>npm install crispy-css
  2. </code></pre><h3 class="h4">SCSS</h3><pre class="code"><code>@import
  3. "node_modules/crispy-css/src/crispy";
  4. </code></pre><p>Now include Components and Helpers you need.</p><pre class="code"><code>@include crispy__helpers();
  5. @include crispy__button();
  6. @include crispy__code();
  7. @include crispy__field();
  8. @include crispy__group();
  9. @include crispy__hero();
  10. @include crispy__icon();
  11. @include crispy__media();
  12. @include crispy__modal();
  13. @include crispy__overlay();
  14. @include crispy__panel();
  15. @include crispy__progress();
  16. @include crispy__table();
  17. </code></pre><p>There are two additionals Versions of <span class="text-bold">Crispy</span>. There is <span class="text-bold">crispy-minimal</span>, that only includes Helpers and <span class="text-bold">crispy-all</span> that includes Helpers and all Components.</p><pre class="code"><code>@import
  18. "node_modules/crispy-css/src/crispy-all";
  19. </code></pre><pre class="code"><code>@import
  20. "node_modules/crispy-css/src/crispy-minimal";
  21. </code></pre><h4 class="h5">Configuration</h4><h5 class="h6">Breakpoints</h5><pre class="code"><code>$crispy__xs : 576px;
  22. $crispy__sm : 768px;
  23. $crispy__md : 992px;
  24. $crispy__lg : 1200px;
  25. $crispy__xlg: 1600px;
  26. </code></pre><h5 class="h6">Fonts</h5><pre class="code"><code>$crispy__direction: ltr;
  27. $crispy__font-family: "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  28. $crispy__font-weight: normal;
  29. $crispy__font-size: 0.9rem;
  30. $crispy__font-size-breakpoints: (
  31. $crispy__md: 1.1rem
  32. );
  33. $crispy__font-family-monospace: "Lucida Console", Monaco, monospace;
  34. $crispy__font-weight-monospace: normal ;
  35. $crispy__font-size-monospace: 1rem ;
  36. $crispy__font-size-monospace__breakpoints: (
  37. $crispy__md: 1.1rem
  38. );
  39. $crispy__font-sizes: (
  40. 'default' : $crispy__font-size,
  41. 'small' : $crispy__font-size * 0.75,
  42. 'medium' : $crispy__font-size * 1.25,
  43. 'large' : $crispy__font-size * 1.5,
  44. 'big' : $crispy__font-size * 1.75,
  45. 'mega' : $crispy__font-size * 2,
  46. );
  47. $crispy__line-height: 1.4;
  48. $crispy__line-height__breakpoints: (
  49. $crispy__md: $crispy__golden-ratio
  50. );
  51. </code></pre><h5 class="h6">Colors</h5><pre class="code"><code>$crispy__color-primary: #f18f01;
  52. $crispy__color-secondary: #b3b2af;
  53. $crispy__color-success: #5cb85c;
  54. $crispy__color-warning: #f0ad4e;
  55. $crispy__color-danger: #d9534f;
  56. $crispy__color-info: #0090d4;
  57. $crispy__color-grey-light: hsl(0, 0%, 97%);
  58. $crispy__color-grey: hsl(0, 0%, 48%);
  59. $crispy__color-grey-dark: hsl(0, 0%, 29%);
  60. $crispy__color-white: white;
  61. $crispy__color-text: #363636;
  62. $crispy__color-border: #dfdfdf;
  63. $crispy__color-background: #ffffff;
  64. $crispy__color-panel: #f9f9f9;
  65. $crispy__color-link: $crispy__color-primary;
  66. $crispy__color-link-hover: $crispy__color-secondary;
  67. $crispy__color-link-visited: $crispy__color-primary;
  68. $crispy__color-link-focus: $crispy__color-primary;
  69. $crispy__color-link-active: $crispy__color-primary;
  70. $crispy__colors: (
  71. 'primary' : $crispy__color-primary,
  72. 'secondary' : $crispy__color-secondary,
  73. 'success' : $crispy__color-success,
  74. 'warning' : $crispy__color-warning,
  75. 'danger' : $crispy__color-danger,
  76. 'info' : $crispy__color-info,
  77. 'grey' : $crispy__color-grey,
  78. 'grey-light' : $crispy__color-grey-light,
  79. 'grey-dark' : $crispy__color-grey-dark,
  80. 'white' : $crispy__color-white
  81. );
  82. </code></pre><h5 class="h6">Padding & Magin</h5><pre class="code"><code>$crispy__margin: 0 0 15px;
  83. $crispy__margin-breakpoints: (
  84. $crispy__md: 0 0 20px
  85. );
  86. $crispy__padding: 0.4em 0.6em;
  87. $crispy__padding-breakpoints: (
  88. $crispy__md: 0.8em 1.1em
  89. );
  90. </code></pre><h5 class="h6">Heading</h5><pre class="code"><code>$crispy__heading__font-sizes: (
  91. 'h1': $crispy__font-size * 2.5,
  92. 'h2': $crispy__font-size * 2,
  93. 'h3': $crispy__font-size * 1.75,
  94. 'h4': $crispy__font-size * 1.5,
  95. 'h5': $crispy__font-size * 1.25,
  96. 'h6': $crispy__font-size
  97. ) ;
  98. $crispy__heading__font-sizes__breakpoints: (
  99. $crispy__md: 1.2rem
  100. );
  101. $crispy__heading__font-weight: bold;
  102. $crispy__heading__font-family: $crispy__font-family;
  103. $crispy__heading__margin: $crispy__margin;
  104. $crispy__heading__margin-breakpoints: $crispy__margin-breakpoints;
  105. </code></pre><h5 class="h6">Borders</h5><pre class="code"><code>$crispy__border-radius: 3px !default;
  106. $crispy__border: 1px solid $crispy__color-border !default;
  107. </code></pre><h5 class="h6">Z-Index</h5><pre class="code"><code>$crispy__z-index: (
  108. 'overlay': 90,
  109. 'modal' : 100
  110. ) !default;
  111. </code></pre><p>For Custom Variables add a File before importing Crispy.</p><pre class="code"><code>@import
  112. "config",
  113. "node_modules/crispy-css/src/crispy";
  114. </code></pre><h2 class="margin-top-3 margin-bottom-1">Example</h2><hr class="marginless margin-bottom-2"/><p>You find all of this Site in "/src/example". This is also an Example how you can use Crispy CSS and orginaize your Project.</p><h3 class="h4">Site</h3><p>Contains header, footer and some partials that are used on a Site or Webapp.</p><h3 class="h4">Templates</h3><p>Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.</p></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html>