library to determine if the color parameter is a 'light' or a 'dark' color
Hindi dapat direktang i-install ang script na ito. Ito ay isang library para sa iba pang mga script na isasama sa meta directive. // @require https://update.greasyfork.org/scripts/491888/1827644/Light%20or%20Dark.js
Call the function lightOrDark() with the color you want to test.
Returns string "light" or "dark" accordingly.
For example:
const bgLightOrDark = lightOrDark(window.getComputedStyle(document.body).backgroundColor);