Skip to content

Instantly share code, notes, and snippets.

@caengen
Last active October 3, 2019 08:20
Show Gist options
  • Save caengen/7d6a4057f8f1191a039616fee1985d30 to your computer and use it in GitHub Desktop.
Save caengen/7d6a4057f8f1191a039616fee1985d30 to your computer and use it in GitHub Desktop.
$ echo "
contrast() {
        curl 'https://webaim.org/resources/contrastchecker/?fcolor=${1}&bcolor=${2}&api'
}
" >> ~/.zshrc
$ source ~/.zshrc
$ contrast fff 000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment