Theme
class Theme
Properties
static | $dark_mode | ||
static | $theme_base |
Methods
Get default theme values from a configured theme or the actual defaults
No description
Take a color and move it along its luminance until it is halfway between a given dark color and white
Take a color, move a pair of colors outwards towards white and black until the colors are at least as far apart as $difference
No description
Derive a range of named colors from a single base color
No description
No description
Details
at line 16
static
defaults($theme = false)
Get default theme values from a configured theme or the actual defaults
at line 38
static
isActive($themeIndicator = false)
at line 76
static
findLMidPointForHue($r, $g = false, $b = false, $dark = false)
Take a color and move it along its luminance until it is halfway between a given dark color and white
at line 107
static
luminosityPair($difference, $r, $g = false, $b = false)
Take a color, move a pair of colors outwards towards white and black until the colors are at least as far apart as $difference
at line 139
static
getLegacyTheme($tsugi_dark, $dark_mode)
at line 187
static
deriveTsugiColors($tsugi_dark)
Derive a range of named colors from a single base color
This color should have at least an 8.0 luminance ratio from white - if not - it will be moved to the point where it does have an 8.0 luminance ratio from white.