Add isDark() and isLight() functions.