Created
June 4, 2013 18:54
-
-
Save max/5708466 to your computer and use it in GitHub Desktop.
Flat UI Colors as Sass variables
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
// I needed flatuicolors.com as Sass variables... | |
// In your console, run: | |
$('.color').get().map(function(el) { return "$" + el.classList[1] + ": " + el.getAttribute('data-clipboard-text') + ';' }).join('\r\n'); | |
// Output: | |
// $turquoise: #1abc9c; | |
// $emerland: #2ecc71; | |
// $peter-river: #3498db; | |
// $amethyst: #9b59b6; | |
// $wet-asphalt: #34495e; | |
// $green-sea: #16a085; | |
// $nephritis: #27ae60; | |
// $belize-hole: #2980b9; | |
// $wisteria: #8e44ad; | |
// $midnight-blue: #2c3e50; | |
// $sun-flower: #f1c40f; | |
// $carrot: #e67e22; | |
// $alizarin: #e74c3c; | |
// $clouds: #ecf0f1; | |
// $concrete: #95a5a6; | |
// $orange: #f39c12; | |
// $pumpkin: #d35400; | |
// $pomegranate: #c0392b; | |
// $silver: #bdc3c7; | |
// $asbestos: #7f8c8d; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, to get them as CSS custom properties:
Result will be copied to your clipboard.