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

Palette overview

This module defines a Palette, a named collection of Styles used to build PaletteContextStylers


Table of contents


Constructors

make

Constructor

Signature

export declare const make: (styles_0: ASStyle.Type, styles_1: ASStyle.Type, ...styles_2: ASStyle.Type[]) => Type

Destructors

toString

Gets the id of self

Signature

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

Getters

styles

Gets the underlying styles of self

Signature

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

Instances

allBrightOriginalColors

Palette instance which contains all bright original colors

Signature

export declare const allBrightOriginalColors: Type

allOriginalColors

Palette instance which contains all original colors

Signature

export declare const allOriginalColors: Type

allStandardOriginalColors

Palette instance which contains all standard original colors

Signature

export declare const allStandardOriginalColors: Type

Models

Type (class)

Type that represents a Palette.

Signature

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

make (static method)

Static constructor

Signature

static make(params: MTypes.Data<Type>): Type

[MData.idSymbol] (method)

Returns the id of this

Signature

[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

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

Utils

append

Appends that to self

Signature

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