Last active
August 29, 2015 14:00
-
-
Save czterystaczwarty/11234647 to your computer and use it in GitHub Desktop.
Extracts colors with CSS, sort and remove duplicates.
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
# Extracts colors with CSS, sort and remove duplicates. | |
egrep -o 'rgba\([[:digit:],\.\s\ ]+\)|#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})' style.css | sed 's/ *//g' | xargs -n1 | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment