class Theme

Properties

static $dark_mode
static $theme_base

Methods

static 
defaults($theme = false)

Get default theme values from a configured theme or the actual defaults

static 
isActive($themeIndicator = false)

No description

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

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

static 
getLegacyTheme($tsugi_dark, $dark_mode)

No description

static 
deriveTsugiColors($tsugi_dark)

Derive a range of named colors from a single base color

static 
rgbToHsl($r, $g = false, $b = false)

No description

static 
hslToRgb($h, $s = false, $l = false)

No description

Details

at line 16
static defaults($theme = false)

Get default theme values from a configured theme or the actual defaults

Parameters

$theme

at line 38
static isActive($themeIndicator = false)

Parameters

$themeIndicator

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

Parameters

$r
$g
$b
$dark

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

Parameters

$difference
$r
$g
$b

at line 139
static getLegacyTheme($tsugi_dark, $dark_mode)

Parameters

$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.

Parameters

$tsugi_dark

at line 246
static rgbToHsl($r, $g = false, $b = false)

Parameters

$r
$g
$b

at line 295
static hslToRgb($h, $s = false, $l = false)

Parameters

$h
$s
$l