KNACSS/sass/_config/_variables.scss

142 lines
4.6 KiB
SCSS
Raw Normal View History

// Config file and project variables
2014-05-04 15:48:00 +02:00
2017-10-13 17:05:37 +02:00
// breakpoints values
2017-10-13 17:06:38 +02:00
// warning: you should use your own values, regardless of the devices
2017-10-13 17:05:37 +02:00
// best practise is Mobile First: (min-width: $breakpoint)
$tiny: 480px !default; // or 'em' if you prefer, of course
$small: 576px !default;
$medium: 768px !default;
$large: 992px !default;
$extra-large: 1200px !default;
2017-03-03 16:51:48 +01:00
// tiny font sizes (mobile first)
2017-07-31 17:30:43 +02:00
$base-font-size : 1.4rem; // ex. 1.4rem would be "14px" equivalent
$line-height : 1.4;
$h1-size : 2.8rem; // equiv "28px"
$h2-size : 2.4rem; // equiv "24px"
$h3-size : 2.0rem; // equiv "20px"
$h4-size : 1.8rem; // equiv "18px"
$h5-size : 1.6rem; // equiv "16px"
$h6-size : 1.4rem; // equiv "14px"
2017-03-03 16:51:48 +01:00
// large font sizes
2017-07-31 17:30:43 +02:00
$base-font-size-l : 1.6rem; // ex. 1.6rem would be "16px" equivalent
$line-height-l : 1.5;
$h1-size-l : 3.2rem; // equiv "32px"
$h2-size-l : 2.8rem; // equiv "28px"
$h3-size-l : 2.4rem; // equiv "24px"
$h4-size-l : 2.0rem; // equiv "20px"
$h5-size-l : 1.8rem; // equiv "18px"
$h6-size-l : 1.6rem; // equiv "16px"
2014-05-04 15:48:00 +02:00
// font stacks
2017-07-31 17:30:43 +02:00
$font-stack-common : -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; // system font stack
2017-10-16 15:56:19 +02:00
$font-stack-headings : sans-serif; // font for h1, h2.. h6
$font-stack-monospace : consolas, courier, monospace; // font for code and samples
2014-05-04 15:48:00 +02:00
2017-10-13 17:05:37 +02:00
// grid gutters (for .has-gutter-* classes)
$grid-gutters: ( '': 1rem, '-l': 2rem, '-xl': 4rem );
// global border-radius
$border-radius: 0 !default;
// spacings (choose unit you prefer)
$tiny-value : .5rem !default;
$tiny-plus-value : .7rem !default;
$small-value : 1rem !default;
$small-plus-value : 1.5rem !default;
$medium-value : 2rem !default;
$medium-plus-value : 3rem !default;
$large-value : 4rem !default;
$large-plus-value : 6rem !default;
$extra-large-value : 8rem !default;
$extra-large-plus-value : 12rem !default;
$ultra-large-value : 16rem !default;
$ultra-large-plus-value : 20rem !default;
2017-10-13 10:59:40 +02:00
// color names
$white : #fff !default;
$gray-100 : #f8f9fa !default;
$gray-200 : #e7e9ed !default;
$gray-300 : #dee2e6 !default;
$gray-400 : #ced4da !default;
$gray-500 : #acb3c2 !default;
$gray-600 : #727e96 !default;
$gray-700 : #454d5d !default;
$gray-800 : #333 !default;
$gray-900 : #212529 !default;
$black : #000 !default;
$blue-300 : #5BC0DE !default;
$blue-500 : #0275D8 !default;
$green-500 : #5CB85C !default;
$orange-500 : #F0AD4E !default;
$red-500 : #D9534F !default;
// semantic color scheme
$color-brand : $green-500;
$color-primary : $blue-500;
$color-success : $green-500;
$color-info : $blue-300;
$color-warning : $orange-500;
$color-danger : $red-500;
$color-inverse : $gray-800;
2017-07-31 14:00:06 +02:00
$color-ghost : transparent;
2017-10-13 10:59:40 +02:00
$color-muted : $gray-200;
2016-11-22 14:47:41 +01:00
2017-10-13 10:59:40 +02:00
$color-base : $black;
$background-base : $white;
$link-color : $gray-800;
$link-color-hover: $black;
$forms-color : $gray-800;
2017-07-31 20:34:26 +02:00
2017-10-13 10:59:40 +02:00
// component: quotes
$quote-color : $gray-200;
2017-09-08 15:42:46 +02:00
2017-10-13 10:59:40 +02:00
// component: arrows
$arrow-color : $black;
2017-09-08 16:49:44 +02:00
2017-10-13 10:59:40 +02:00
// component: checkboxes, radios
$checkbox-color : $gray-800;
2017-09-26 11:43:59 +02:00
$checkbox-size: 2rem;
2017-10-16 15:50:42 +02:00
$checkbox-border-radius: 4px;
$switch-border-radius: 3em;
2017-09-08 15:45:48 +02:00
2017-10-13 10:59:40 +02:00
// component: tables
2017-10-16 15:53:36 +02:00
$table-border : $gray-500;
$table-caption-color : $gray-800;
$table-background : transparent;
$table-head-color : $color-base;
$table-head-background : transparent;
$table-footer-color : $color-base;
$table-footer-background : transparent;
2017-09-20 16:50:49 +02:00
2017-10-13 10:59:40 +02:00
// component: buttons, badges, alerts color variants list
2017-07-31 16:01:20 +02:00
// name - background-color - color - border
$variants-list: (
2017-10-13 10:59:40 +02:00
(primary, $color-primary, $white, none),
(success, $color-success, $white, none),
(info, $color-info, $white, none),
(warning, $color-warning, $white, none),
(danger, $color-danger, $white, none),
(inverse, $color-inverse, $white, none),
(ghost, $color-ghost, $white, 0 0 0 1px $white inset)
2017-07-31 16:01:20 +02:00
);
2017-10-13 10:59:40 +02:00
// component: tabs
$tabs-border : $gray-200;
$tabs-active-border : $gray-800;
2017-09-26 11:42:46 +02:00
$tabs-color : $color-base;
2017-10-13 10:59:40 +02:00
$tabs-active-color : $gray-800;
2017-09-26 11:42:46 +02:00
$tabs-background : transparent;
$tabs-active-background : transparent;
$tabs-border-radius : 0;
2017-09-07 15:54:20 +02:00
2017-10-13 10:59:40 +02:00
// component: nav burger button
$burger-color : $gray-800;
2017-09-26 11:42:46 +02:00
$burger-background : transparent;
$burger-hover-background : transparent;
$burger-size : 2.6rem;
$burger-weight : 5px; // size of stripes
$burger-padding : 0;