Module

Choku.Style

Package
purescript-choku
Repository
m15a/purescript-choku

Styles applied to chalks for modifying/colorizing strings.

These styles are of signature Choku -> Choku, appending another modification to any chalk.

Check out the full list of styles here in the original chalk's README. An only difference from the original API is that those six methods to apply styles using RGB/ANSI256 color models, namely chalk.rgb(), chalk.hex(), chalk.ansi256(), chalk.bgRgb(), chalk.bgHex(), and chalk.bgAnsi256() are integrated into two functions fg and bg, thanks to PureScript's GADTs.

See also

#Style Source

type Style = Choku -> Choku

#underline Source

#strikethrough Source

#blackBright Source

#redBright Source

#greenBright Source

#yellowBright Source

#blueBright Source

#magentaBright Source

#cyanBright Source

#whiteBright Source

#bgMagenta Source

#bgBlackBright Source

#bgRedBright Source

#bgGreenBright Source

#bgYellowBright Source

#bgBlueBright Source

#bgMagentaBright Source

#bgCyanBright Source

#bgWhiteBright Source

#fg Source

fg :: Color -> Style

Modify foreground color.

#bg Source

bg :: Color -> Style

Modify background color.