Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Theme<T>

Type parameters

  • T: string

Hierarchy

  • Theme

Index

Constructors

constructor

Properties

Optional computed

computed: TThemeComputed<T>

default

default: TTheme<T>

theme

theme: TTheme<T>

Private themeColorKeys

themeColorKeys: T[]

Static ThemeColorKeys

ThemeColorKeys: ("primary-color" | "secondary-color" | "danger-color" | "success-color" | "warning-color" | "description-color" | "disable-color" | "border-color" | "primary-color-hover" | "secondary-color-hover" | "danger-color-hover" | "primary-color-background" | "secondary-color-background" | "danger-color-background" | "success-color-background" | "warning-color-background" | "text-color" | "text-color-inv" | "disable-background" | "background-hover" | "background-selected" | "table-head-text-color" | "table-head-background" | "table-head-background-hover" | "table-head-background-selected" | "table-head-background-selected-hover" | "menu-background" | "submenu-background" | "menu-text-color" | "box-shadow-color")[] = ...

Methods

get

  • get(key: T): string

has

  • has(key: T): boolean

Private keyToProperty

  • keyToProperty(key: T): string

reset

  • reset(): void

reverse

  • reverse(key1: T, key2: T): void

set

  • set(key: T, value: string, computed?: boolean, alpha?: number): void
  • Parameters

    • key: T
    • value: string
    • computed: boolean = false
    • Optional alpha: number

    Returns void

Static complement

  • complement(hex: string): string

Static getAlpha

  • getAlpha(color: string): number

Static getLuminance

  • getLuminance(color: string): number

Static isdark

  • isdark(hex: string): boolean

Static mix

  • mix(color1: string, color2: string, percent?: number): string
  • Parameters

    • color1: string
    • color2: string
    • percent: number = 50

    Returns string

Static shade

  • shade(hex: string, weigth: number): string

Static tint

  • tint(hex: string, weigth: number): string

Generated using TypeDoc