Skip to content

Instantly share code, notes, and snippets.

View adamchaboryk's full-sized avatar

Adam Chaboryk adamchaboryk

  • Toronto Metropolitan University
  • Toronto, Canada
  • 10:27 (UTC -04:00)
View GitHub Profile
@adamchaboryk
adamchaboryk / google-sheets-contrast-checking-with-colour-preview.js
Last active November 9, 2023 12:07 — forked from wjmazza/google-sheets-colour-preview.js
Google Sheets script: WCAG 2 contrast checker with colour preview via hexcodes.
/*
To use this script in a Google Sheets spreadsheet:
1. Open Google Sheets, go to Extensions > App Scripts.
2. Erase everything in the text editor;
3. Change the title to "Check WCAG 2 Contrast";
4. Paste this code in;
5. Click File » Save.
Google Sheets Colour Preview script: