Skip to content

Instantly share code, notes, and snippets.

@teolopez
Forked from max/gist:5708466
Created November 15, 2013 11:30
Show Gist options
  • Save teolopez/7482961 to your computer and use it in GitHub Desktop.
Save teolopez/7482961 to your computer and use it in GitHub Desktop.
// 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