KNACSS/sass/_config/_variables.scss
2017-09-20 16:50:49 +02:00

128 lines
4.5 KiB
SCSS

// Config file and project variables
// tiny font sizes (mobile first)
$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"
// large font sizes
$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"
// font stacks
$font-stack-common : -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; // system font stack
$font-stack-headings : sans-serif; // headings font
$font-stack-monospace : consolas, courier, monospace; // monospace font
// color scheme
$color-light : #fff;
$color-dark : #000;
$color-gray1 : #333;
$color-gray2 : #454d5d;
$color-gray3 : #727e96;
$color-gray4 : #acb3c2;
$color-gray5 : #e7e9ed;
$color-brand : #6FA939;
$color-primary : #0275D8;
$color-success : #5CB85C;
$color-info : #5BC0DE;
$color-warning : #F0AD4E;
$color-danger : #D9534F;
$color-inverse : #292B2C;
$color-ghost : transparent;
$color-muted : #F7F7F7;
// colors used in project
$color-base : $color-dark;
$background-base : $color-light;
$color-link : $color-gray1;
$color-link-hover: $color-dark;
$color-forms : $color-gray3;
// quotes
$color-quote : $color-gray5;
// arrows
$color-arrow : $color-dark;
// checkboxes, radios
$color-checkbox : $color-gray3;
// tables
$border-table : $color-gray4;
$color-table-caption : $color-gray3;
$color-table-head : $color-base;
$background-table : transparent;
$background-table-head : transparent;
// buttons, badges, alerts color variants list
// name - background-color - color - border
$variants-list: (
(primary, $color-primary, $color-light, none),
(success, $color-success, $color-light, none),
(info, $color-info, $color-light, none),
(warning, $color-warning, $color-light, none),
(danger, $color-danger, $color-light, none),
(inverse, $color-inverse, $color-light, none),
(ghost, $color-ghost, $color-light, 0 0 0 1px $color-light inset)
);
// tabs
$border-tabs : $color-gray5;
$border-tabs-active : $color-gray3;
$color-tabs : $color-base;
$color-tabs-active : $color-gray3;
$background-tabs : transparent;
$background-tabs-active : transparent;
$border-radius-tabs : 0;
// nav burger button
$color-burger : $color-gray1;
$background-burger : transparent;
$background-burger-hover : transparent;
$size-burger : 2.6rem;
$weight-burger : 5px; // size of stripes
$padding-burger : 0;
// spacings (choose unit you prefer)
$tiny-value : .5rem ; // tiny value for margins / paddings
$tiny-plus-value : .7rem ; // tiny+ value for margins / paddings
$small-value : 1rem ; // small value for margins / paddings
$small-plus-value : 1.5rem ; // small+ value for margins / paddings
$medium-value : 2rem ; // medium value for margins / paddings
$medium-plus-value : 3rem ; // medium+ value for margins / paddings
$large-value : 4rem ; // large value for margins / paddings
$large-plus-value : 6rem ; // large value for margins / paddings
$extra-large-value : 8rem ; // extra large value for margins / paddings
$extra-large-plus-value : 12rem ; // extra large value for margins / paddings
$ultra-large-value : 16rem ; // ultra large value for margins / paddings
$ultra-large-plus-value : 20rem ; // ultra large value for margins / paddings
// grid gutters (for .has-gutter-* classes)
$grid-gutters: ( '': 1rem, '-l': 2rem, '-xl': 4rem );
// border-radius
$border-radius: 0;
// Responsive breakpoints variables
// Warning : you should use your own values, regardless of the devices
// Best practise is Mobile First: (max-width: ($BP - 1)) and (min-width: $BP)
$tiny: 480px !default; // or 'em' if you prefer, of course
$small: 576px !default;
$medium: 768px !default;
$large: 992px !default;
$extra-large: 1200px !default;