Palette: {
add(key: string, value: string): void;
alias(from: string, to: string): void;
get(key: string, fallback?: string): string;
getOrAdd(key: string, fallback?: string): string;
has(key: string): boolean;
setElementBase(el: Element): void;
}
Type declaration
add:function
- add(key, value): void
Returns void
alias:function
- alias(from, to): void
Returns void
get:function
- get(key, fallback?): string
Parameters
- key: string
Optional
fallback: string
Returns string
getOrAdd:function
- getOrAdd(key, fallback?): string
Parameters
- key: string
Optional
fallback: string
Returns string
has:function
- has(key): boolean
Returns boolean
setElementBase:function
- setElementBase(el): void
Returns void
Manage a set of colours. Uses CSS variables as a fallback if colour is not added