Skip to content

Instantly share code, notes, and snippets.

@pkirkovsky
Created February 11, 2024 22:50
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 pkirkovsky/a97c1d2b0c669330e6e3317a46c47730 to your computer and use it in GitHub Desktop.
Save pkirkovsky/a97c1d2b0c669330e6e3317a46c47730 to your computer and use it in GitHub Desktop.
quickly extract hex color codes from an SVG (combine with curl for remote files!)
# example
curl -s https://www.kirkovsky.com/img/background.svg | grep -oE '#[a-f0-9]{6,}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment