Skip to content

Instantly share code, notes, and snippets.

@colin-johnston
Last active January 29, 2016 20:03
Show Gist options
  • Save colin-johnston/58354876547cd88d165f to your computer and use it in GitHub Desktop.
Save colin-johnston/58354876547cd88d165f to your computer and use it in GitHub Desktop.
CI Colors - Notice Yellow (Shade vs Darken)
<div class="wrapper">
<div class="color">&nbsp;</div>
<div class="color2">&nbsp;</div>
</div>
// ----
// libsass (v3.3.2)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
//$gray: rgb(140, 142, 144);
//$light-gray: tint($gray, 30%);
//$dark-gray: shade($gray, 60%);
$notice-yellow: rgb(255, 210, 0);
$darken-yellow: darken($notice-yellow, 30%);
$shade-yellow: shade($notice-yellow, 30);
.wrapper {
background-color: $notice-yellow;
border: 1px solid black;
height: 200px;
margin: 25vh auto 0;
width: 200px;
> div {
height: 99px;
width: 99px;
}
}
.color {
background: $darken-yellow;
display: block;
}
.color2 {
background: $shade-yellow;
display: block;
}
html {
box-sizing: border-box;
}
*, *::after, *::before {
box-sizing: inherit;
}
.wrapper {
background-color: #ffd200;
border: 1px solid black;
height: 200px;
margin: 25vh auto 0;
width: 200px;
}
.wrapper > div {
height: 99px;
width: 99px;
}
.color {
background: #665400;
display: block;
}
.color2 {
background: #b39300;
display: block;
}
<div class="wrapper">
<div class="color">&nbsp;</div>
<div class="color2">&nbsp;</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment