2016-09-24 15:04:53 +00:00
|
|
|
////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////
|
2016-04-18 20:09:44 +00:00
|
|
|
// 1. Initial variables
|
|
|
|
|
|
|
|
// Colors
|
2016-09-24 15:04:53 +00:00
|
|
|
$black: hsl(0, 0%, 4%) !default
|
|
|
|
$black-bis: hsl(0, 0%, 7%) !default
|
|
|
|
$black-ter: hsl(0, 0%, 14%) !default
|
|
|
|
|
|
|
|
$grey-darker: hsl(0, 0%, 21%) !default
|
|
|
|
$grey-dark: hsl(0, 0%, 29%) !default
|
|
|
|
$grey: hsl(0, 0%, 48%) !default
|
|
|
|
$grey-light: hsl(0, 0%, 71%) !default
|
|
|
|
$grey-lighter: hsl(0, 0%, 86%) !default
|
|
|
|
|
|
|
|
$white-ter: hsl(0, 0%, 96%) !default
|
|
|
|
$white-bis: hsl(0, 0%, 98%) !default
|
2016-09-18 18:12:19 +00:00
|
|
|
$white: hsl(0, 0%, 100%) !default
|
2016-09-18 17:09:32 +00:00
|
|
|
|
2016-09-24 15:04:53 +00:00
|
|
|
$orange: hsl(14, 100%, 53%) !default
|
2016-09-25 16:44:01 +00:00
|
|
|
$yellow: hsl(48, 100%, 67%) !default
|
|
|
|
$green: hsl(141, 71%, 48%) !default
|
|
|
|
$turquoise: hsl(171, 100%, 41%) !default
|
|
|
|
$blue: hsl(217, 71%, 53%) !default
|
2016-09-24 15:04:53 +00:00
|
|
|
$purple: hsl(271, 100%, 71%) !default
|
2016-09-25 16:44:01 +00:00
|
|
|
$red: hsl(348, 100%, 61%) !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
|
|
|
// Typography
|
2016-09-18 18:12:19 +00:00
|
|
|
$family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default
|
2017-03-26 18:15:44 +00:00
|
|
|
$family-monospace: monospace !default
|
|
|
|
$render-mode: optimizeLegibility !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
2017-03-13 12:05:02 +00:00
|
|
|
$size-1: 3rem !default
|
|
|
|
$size-2: 2.5rem !default
|
2016-10-30 10:41:53 +00:00
|
|
|
$size-3: 2rem !default
|
2016-10-29 17:53:30 +00:00
|
|
|
$size-4: 1.5rem !default
|
|
|
|
$size-5: 1.25rem !default
|
2017-03-12 14:13:08 +00:00
|
|
|
$size-6: 1rem !default
|
2017-03-13 12:05:02 +00:00
|
|
|
$size-7: 0.75rem !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
2016-10-30 10:41:53 +00:00
|
|
|
$weight-light: 300 !default
|
2016-04-21 20:39:57 +00:00
|
|
|
$weight-normal: 400 !default
|
2016-10-30 10:41:53 +00:00
|
|
|
$weight-semibold: 500 !default
|
2016-04-21 20:39:57 +00:00
|
|
|
$weight-bold: 700 !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
2017-03-12 14:13:08 +00:00
|
|
|
// Body
|
|
|
|
$body-background: $white !default
|
2017-03-13 12:05:02 +00:00
|
|
|
$body-size: 16px !default
|
2017-03-12 14:13:08 +00:00
|
|
|
|
2017-03-14 21:00:58 +00:00
|
|
|
// Responsiveness
|
|
|
|
// 960, 1152, and 1344 have been chosen because
|
|
|
|
// they are divisible by both 12 and 16
|
|
|
|
$tablet: 769px !default
|
|
|
|
// 960px container + 40px
|
|
|
|
$desktop: 1000px !default
|
|
|
|
// 1152px container + 40
|
|
|
|
$widescreen: 1192px !default
|
|
|
|
// 1344px container + 40
|
|
|
|
$fullhd: 1384px !default
|
|
|
|
|
2016-04-18 20:09:44 +00:00
|
|
|
// Miscellaneous
|
|
|
|
$easing: ease-out !default
|
2016-06-29 22:25:27 +00:00
|
|
|
$radius-small: 2px !default
|
2016-04-18 20:09:44 +00:00
|
|
|
$radius: 3px !default
|
2016-06-29 22:25:27 +00:00
|
|
|
$radius-large: 5px !default
|
2016-04-18 20:09:44 +00:00
|
|
|
$speed: 86ms !default
|
|
|
|
|
2016-09-24 15:04:53 +00:00
|
|
|
////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////
|
2016-04-18 20:09:44 +00:00
|
|
|
// 2. Primary colors
|
|
|
|
|
|
|
|
$primary: $turquoise !default
|
|
|
|
|
|
|
|
$info: $blue !default
|
|
|
|
$success: $green !default
|
|
|
|
$warning: $yellow !default
|
|
|
|
$danger: $red !default
|
|
|
|
|
2016-09-24 15:04:53 +00:00
|
|
|
$light: $white-ter !default
|
|
|
|
$dark: $grey-darker !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
2016-09-24 15:04:53 +00:00
|
|
|
////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////
|
|
|
|
// 3. Applied variables
|
2016-04-18 20:09:44 +00:00
|
|
|
|
|
|
|
// Invert colors
|
2016-12-22 18:17:26 +00:00
|
|
|
$orange-invert: findColorInvert($orange) !default
|
|
|
|
$yellow-invert: findColorInvert($yellow) !default
|
|
|
|
$green-invert: findColorInvert($green) !default
|
|
|
|
$turquoise-invert: findColorInvert($turquoise) !default
|
|
|
|
$blue-invert: findColorInvert($blue) !default
|
|
|
|
$purple-invert: findColorInvert($purple) !default
|
|
|
|
$red-invert: findColorInvert($red) !default
|
|
|
|
|
|
|
|
$primary-invert: $turquoise-invert !default
|
|
|
|
$info-invert: $blue-invert !default
|
|
|
|
$success-invert: $green-invert !default
|
|
|
|
$warning-invert: $yellow-invert !default
|
|
|
|
$danger-invert: $red-invert !default
|
2016-05-05 23:23:00 +00:00
|
|
|
$light-invert: $dark !default
|
|
|
|
$dark-invert: $light !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
|
|
|
// General colors
|
2016-09-24 15:04:53 +00:00
|
|
|
$background: $white-ter !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
2016-09-24 15:04:53 +00:00
|
|
|
$border: $grey-lighter !default
|
|
|
|
$border-hover: $grey-light !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
|
|
|
// Text colors
|
2016-09-24 15:04:53 +00:00
|
|
|
$text: $grey-dark !default
|
2016-04-18 20:09:44 +00:00
|
|
|
$text-invert: findColorInvert($text) !default
|
|
|
|
$text-light: $grey !default
|
|
|
|
$text-strong: $grey-darker !default
|
|
|
|
|
|
|
|
// Code colors
|
|
|
|
$code: $red !default
|
|
|
|
$code-background: $background !default
|
|
|
|
|
|
|
|
$pre: $text !default
|
|
|
|
$pre-background: $background !default
|
|
|
|
|
|
|
|
// Link colors
|
|
|
|
$link: $primary !default
|
|
|
|
$link-invert: $primary-invert !default
|
|
|
|
$link-visited: $purple !default
|
|
|
|
|
|
|
|
$link-hover: $grey-darker !default
|
2016-10-29 20:51:13 +00:00
|
|
|
$link-hover-border: $grey-light !default
|
|
|
|
|
|
|
|
$link-focus: $grey-darker !default
|
|
|
|
$link-focus-border: $primary !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
|
|
|
$link-active: $grey-darker !default
|
2016-10-29 20:51:13 +00:00
|
|
|
$link-active-border: $grey-dark !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
|
|
|
// Typography
|
|
|
|
$family-primary: $family-sans-serif !default
|
|
|
|
$family-code: $family-monospace !default
|
|
|
|
|
|
|
|
$size-small: $size-7 !default
|
2017-03-12 14:13:08 +00:00
|
|
|
$size-normal: $size-6 !default
|
2017-01-15 21:44:25 +00:00
|
|
|
$size-medium: $size-5 !default
|
2016-10-29 17:53:30 +00:00
|
|
|
$size-large: $size-4 !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
2016-09-24 15:04:53 +00:00
|
|
|
////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////
|
2016-04-18 20:09:44 +00:00
|
|
|
// 4. Lists and maps
|
|
|
|
|
2016-05-05 23:23:00 +00:00
|
|
|
$colors: (white: ($white, $black), black: ($black, $white), light: ($light, $light-invert), dark: ($dark, $dark-invert), primary: ($primary, $primary-invert), info: ($info, $info-invert), success: ($success, $success-invert), warning: ($warning, $warning-invert), danger: ($danger, $danger-invert)) !default
|
2016-04-18 20:09:44 +00:00
|
|
|
|
|
|
|
$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 !default
|