1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 00:17:31 +02:00

fix: adjust snippet description

This commit is contained in:
protoclown
2022-09-26 13:01:46 +02:00
parent 99b5036f3e
commit ad0624770d

View File

@@ -1,7 +1,8 @@
/**
* The `getContrast` utility converts a hex color to rgb, and then calcul a YIQ
* value in order to get the appropriate contrast value (is it dark or is it
* light?) See https://www.w3.org/TR/AERT/#color-contrast for references
* The `isDark` utility converts a hex color to rgb, and then calcul a YIQ
* value in order to get the appropriate brightness value (is it dark or is it
* light?) See https://www.w3.org/TR/AERT/#color-contrast for references. A YIQ
* value >= 128 is a light color.
*/
export default function isDark(hexcolor: String) {