Skip to main content Link Search Menu Expand Document (external link)

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

Source

Destructors

toString

Gets the id of self

Signature

declare const toString: (self: Type) => string

Source

Getters

styles

Gets the underlying styles of self

Signature

declare const styles: MTypes.OneArgFunction<Type, readonly [ASStyle.Type, ASStyle.Type, ...ASStyle.Type[]]>

Source

Instances

allBrightOriginalColors

Palette instance which contains all bright original colors

Signature

declare const allBrightOriginalColors: Type

Source

allOriginalColors

Palette instance which contains all original colors

Signature

declare const allOriginalColors: Type

Source

allStandardOriginalColors

Palette instance which contains all standard original colors

Signature

declare const allStandardOriginalColors: Type

Source

Models

Type (class)

Type that represents a Palette.

Signature

declare class Type {
  private constructor({ styles }: MTypes.Data<Type>)
}

Source

make (static method)

Static constructor

Signature

declare const make: (params: MTypes.Data<Type>) => Type

Source

[MData.idSymbol] (method)

Returns the id of this

Signature

declare const [MData.idSymbol]: () => string | (() => string)

Source

styles (property)

Array of styles contained by this Palette

Signature

readonly styles: readonly [ASStyle.Type, ASStyle.Type, ...ASStyle.Type[]]

Source

Module markers

moduleTag

Module tag

Signature

declare const moduleTag: "@parischap/ansi-styles/Palette/"

Source

Utils

append

Appends that to self

Signature

declare const append: (that: Type) => (self: Type) => Type

Source