google-dark
google-dark copied to clipboard
Create better luminance function
We determine luminance of the chosen accent color to decide whether to use black or white text with it, depending on what has greater contrast. At the moment there are some colors for which the lesser contrast option may be chosen, no matter the cutoff used.