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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user