Palette.ts overview
This module defines a Palette, a named collection of Styles used to build PaletteContextStylers
Exports Grouped by Category
Constructors
make
Constructor
Signature
declare const make: (styles_0: ASStyle.Type, styles_1: ASStyle.Type, ...styles: Array<ASStyle.Type>) => Type
Destructors
toString
Gets the id of self
Signature
declare const toString: (self: Type) => string
Getters
styles
Gets the underlying styles of self
Signature
declare const styles: MTypes.OneArgFunction<Type, readonly [ASStyle.Type, ASStyle.Type, ...ASStyle.Type[]]>
Instances
allBrightOriginalColors
Palette instance which contains all bright original colors
Signature
declare const allBrightOriginalColors: Type
allOriginalColors
Palette instance which contains all original colors
Signature
declare const allOriginalColors: Type
allStandardOriginalColors
Palette instance which contains all standard original colors
Signature
declare const allStandardOriginalColors: Type
Models
Type (class)
Type that represents a Palette.
Signature
declare class Type {
private constructor({ styles }: MTypes.Data<Type>)
}
make (static method)
Static constructor
Signature
declare const make: (params: MTypes.Data<Type>) => Type
[MData.idSymbol] (method)
Returns the id of this
Signature
declare const [MData.idSymbol]: () => string | (() => string)
styles (property)
Array of styles contained by this Palette
Signature
readonly styles: readonly [ASStyle.Type, ASStyle.Type, ...ASStyle.Type[]]
Module markers
moduleTag
Module tag
Signature
declare const moduleTag: "@parischap/ansi-styles/Palette/"
Utils
append
Appends that to self
Signature
declare const append: (that: Type) => (self: Type) => Type