Skip to content

Instantly share code, notes, and snippets.

@zaus
Created June 20, 2013 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaus/5822531 to your computer and use it in GitHub Desktop.
Save zaus/5822531 to your computer and use it in GitHub Desktop.
Nice complementary colors. A #CodePen by JB Price.
<div class="box red"></div>
<div class="box orange"></div>
<div class="box yellow"></div>
<div class="box green"></div>
<div class="box teal"></div>
<div class="box blue"></div>
<div class="box purple"></div>
<div class="box pink"></div>
body {
padding:1%;
}
.box {
width:100px;
height:100px;
position:relative;
overflow:hidden;
display:inline-block;
margin: 0 10px 10px 0;
}
.box:before {
display:block;
background:#f00;
content:' ';
border:100px solid;
border-color:#aaa #aaa;
border-width:0 100px 100px;
}
.red:before {border-color:#bc3f39 #d74c3f;}
.orange:before {border-color:#d3711a #ef871b;}
.yellow:before {border-color:#e5a128 #ffbb2a;}
.green:before {border-color:#a3b53a #b6d141;}
.teal:before {border-color:#00b78a #00ce98;}
.blue:before {border-color:#4badb7 #55c0d3;}
.purple:before {border-color:#6b619e #8070ba;}
.pink:before {border-color:#bf497f #e6528c;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment