Last active
February 9, 2016 21:02
-
-
Save allanwhite/6ec845a76c4959680209 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$gray-1: hsl(225, 4%, 8%); | |
$gray-2: hsl(225, 4%, 16%); | |
$gray-3: hsl(225, 4%, 25%); | |
$gray-4: hsl(225, 4%, 33%); | |
$gray-5: hsl(225, 4%, 41%); | |
$gray-6: hsl(225, 4%, 50%); | |
$gray-7: hsl(225, 4%, 58%); | |
$gray-8: hsl(225, 4%, 66%); | |
$gray-9: hsl(225, 4%, 75%); | |
$gray-10: hsl(225, 4%, 83%); | |
$gray-11: hsl(225, 4%, 91%); | |
$gray-12: hsl(225, 4%, 96); | |
// sooo many color values! | |
$green: hsl(150, 55%, 50%);//hsl(172, 60%, 40%); | |
$orange: hsl(25, 95%, 60%);//hsl(27, 85%, 55%); | |
$red: hsl(1, 69%, 53%); | |
$blue: hsl(221, 100%, 50%); | |
$blue-deep: adjust-color($blue, $hue: -5deg, $saturation: 30%, $lightness: -20%); | |
$blue-light: adjust-color($blue, $hue: -1deg, $saturation: 0%, $lightness: 30%); | |
$yellow: hsl(48, 97%, 75%); | |
$purple: hsl(275, 73%, 55%); | |
$gray-base: hsl(210, 33%, 0%); | |
$color-highlight: adjust-color($yellow, $hue: 4, $lightness: 25%, $saturation: 20%); //for "highlight marker" colors | |
$white : #fff; | |
$black : #000; | |
$primary-color: $blue; // blue-green | |
$primary-color-light: adjust-color($primary-color, $lightness: 20%, $saturation: 50%); // | |
$primary-color-dark: $blue-deep;//adjust-color($primary-color, $lightness: -30%, $saturation: 10%); // darker blue | |
$secondary-color: $gray-7; | |
$secondary-color-dark: $gray-10; //adjust-color($secondary-color, $lightness: -10%, $saturation: 10%); | |
$secondary-color-light: $gray-12; //adjust-color($secondary-color, $hue: 10%, $lightness: 20%, $saturation: 20%); | |
//$yellow: hsl(48, 97%, 75%); | |
$tertiary-color: $red; | |
$tertiary-color-dark: adjust-color($tertiary-color, $lightness: -20%, $saturation: -10%); | |
$tertiary-color-light: adjust-color($tertiary-color, $lightness: 0%, $saturation: 30%); | |
$alert-color: $red; | |
$success-color: $green;//adjust-color($green, $hue: -5deg, $lightness: -10%, $saturation: 90%); | |
$success-color-light: adjust-color($success-color, $lightness: 20%, $saturation: 50%); | |
$warning-color: adjust-color($orange, $lightness: 5%, $saturation: -5%); // orangy | |
$info-color: $blue-light; | |
// custom color variables | |
$trans: rgba(0, 0, 0, 0); // transparent aluminum! | |
$page-color: #fff; // content body | |
$pad: 1rem; | |
$color-list-primaries: ( | |
green: $green, | |
orange: $orange, | |
red: $red, | |
blue: $blue, | |
blue-deep: adjust-color($blue, $hue: -5deg, $saturation: -20%, $lightness: -30%), | |
yellow: $yellow, | |
purple: $purple, | |
white: #fff | |
); | |
$color-list-defaults: ( | |
default: $blue, | |
primary: $blue, | |
secondary: $blue-deep, | |
tertiary: $gray-4, | |
info: $gray-7, | |
success: $green, | |
warning: $orange, | |
alert: $red | |
); | |
@function black($opacity) { | |
@return rgba(0,0,0,$opacity); | |
} | |
@function white($opacity) { | |
@return rgba(255,255,255,$opacity); | |
} | |
@mixin shadow($offset, $blur, $opacity) { | |
box-shadow: $offset $offset $blur black($opacity); | |
} | |
@mixin label-color($color, $luma){ | |
@if lightness($color) >= $luma { | |
color: $black; | |
&:hover { | |
color: $black; | |
} | |
} | |
@else { | |
color: $white; | |
} | |
} | |
$gray-list: ( | |
gray-1 $gray-1, gray-2 $gray-2, gray-3 $gray-3, gray-4 $gray-4, gray-5 $gray-5, gray-6 $gray-6, gray-7 $gray-7, gray-8 $gray-8, gray-9 $gray-9, gray-10 $gray-10, gray-11 $gray-11, gray-12 $gray-12 | |
); | |
%faded { | |
opacity: 0.6; | |
} | |
@mixin shadow($offset, $blur, $opacity) { | |
box-shadow: $offset $offset $blur black($opacity); | |
} | |
@each $name, $color in $color-list-primaries { | |
.color-#{$name}{ | |
@include label-color($color, 60%); | |
background: $color; | |
} | |
} | |
@each $name, $color in $gray-list { | |
.#{$name}{ | |
@include label-color($color, 60%); | |
background: $color; | |
} | |
} | |
.nopad { | |
padding: 0 !important; | |
} | |
body, h1, h2, h3, h4, h5, h6, p, li, ol, .label, dl, dt, blockquote, cite, a, button, .button{ | |
font-family: 'Open Sans', sans-serif; | |
color: inherit; | |
} | |
html { | |
font-size: 14px; // rem base | |
} | |
//section.group{ | |
// margin-bottom: $pad * 4; | |
//} | |
code, .username, .docs, .error { | |
font-family: 'Source Code Pro', monospaced; | |
} | |
.dark { | |
background: $gray-8; | |
@include label-color($gray-4, 60%); | |
} | |
.light { | |
background: $gray-10; | |
} | |
.circle{ | |
border-radius: 50%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment