KNACSS/sass/_config/_variables.scss

130 lines
4.5 KiB
SCSS
Raw Normal View History

// Config file and project variables
2014-05-04 15:48:00 +02:00
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
$font-stack-headings : sans-serif; // headings font
$font-stack-monospace : consolas, courier, monospace; // monospace font
2014-05-04 15:48:00 +02:00
2016-11-22 14:47:41 +01:00
// color scheme
2017-07-31 13:24:04 +02:00
$color-light : #fff;
2017-07-31 17:30:43 +02:00
$color-dark : #000;
2017-08-02 17:13:10 +02:00
$color-gray1 : #333;
$color-gray2 : #454d5d;
$color-gray3 : #727e96;
$color-gray4 : #acb3c2;
$color-gray5 : #e7e9ed;
2017-08-02 11:16:36 +02:00
$color-brand : #6FA939;
2017-07-31 13:24:04 +02:00
$color-primary : #0275D8;
$color-success : #5CB85C;
$color-info : #5BC0DE;
$color-warning : #F0AD4E;
2017-07-31 13:26:20 +02:00
$color-danger : #D9534F;
2017-07-31 13:24:04 +02:00
$color-inverse : #292B2C;
2017-07-31 14:00:06 +02:00
$color-ghost : transparent;
2017-07-31 13:24:04 +02:00
$color-muted : #F7F7F7;
2016-11-22 14:47:41 +01:00
2016-12-08 11:23:35 +01:00
// colors used in project
2017-08-02 11:16:36 +02:00
$color-base : $color-dark;
$background-base : $color-light;
2017-09-26 11:42:46 +02:00
$link-color : $color-gray1;
$link-color-hover: $color-dark;
$forms-color : $color-gray3;
2017-07-31 20:34:26 +02:00
2017-09-08 15:42:46 +02:00
// quotes
2017-09-26 11:42:46 +02:00
$quote-color : $color-gray5;
2017-09-08 15:42:46 +02:00
2017-09-08 16:49:44 +02:00
// arrows
2017-09-26 11:42:46 +02:00
$arrow-color : $color-dark;
2017-09-08 16:49:44 +02:00
2017-09-08 15:45:48 +02:00
// checkboxes, radios
2017-09-26 11:42:46 +02:00
$checkbox-color : $color-gray3;
2017-09-26 11:43:59 +02:00
$checkbox-size: 2rem;
2017-09-26 11:42:46 +02:00
$checkbox-border-radius: 3em;
2017-09-08 15:45:48 +02:00
2017-09-20 16:50:49 +02:00
// tables
2017-09-26 11:42:46 +02:00
$table-border : $color-gray4;
$table-caption-color : $color-gray3;
$table-head-color : $color-base;
$table-background : transparent;
$table-head-background : transparent;
2017-09-20 16:50:49 +02:00
2017-09-07 15:11:47 +02:00
// buttons, badges, alerts color variants list
2017-07-31 16:01:20 +02:00
// 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)
);
2017-09-07 15:54:20 +02:00
// tabs
2017-09-26 11:42:46 +02:00
$tabs-border : $color-gray5;
$tabs-active-border : $color-gray3;
$tabs-color : $color-base;
$tabs-active-color : $color-gray3;
$tabs-background : transparent;
$tabs-active-background : transparent;
$tabs-border-radius : 0;
2017-09-07 15:54:20 +02:00
2017-09-07 18:52:29 +02:00
// nav burger button
2017-09-26 11:42:46 +02:00
$burger-color : $color-gray1;
$burger-background : transparent;
$burger-hover-background : transparent;
$burger-size : 2.6rem;
$burger-weight : 5px; // size of stripes
$burger-padding : 0;
2017-09-07 15:11:47 +02:00
// spacings (choose unit you prefer)
2017-07-31 15:49:38 +02:00
$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
2017-07-31 11:37:12 +02:00
// grid gutters (for .has-gutter-* classes)
$grid-gutters: ( '': 1rem, '-l': 2rem, '-xl': 4rem );
2017-07-31 15:49:38 +02:00
2017-09-26 11:42:46 +02:00
// global border-radius
2017-07-31 15:49:38 +02:00
$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;