// with `bg` prefix will set background color
black
red
green
yellow
blue
magenta
cyan
white
blackBright
redBright
greenBright
yellowBright
blueBright
magentaBright
cyanBright
whiteBright
let color = Color.Material.red50
let color = Color.Material.purple500
let color = Color.CSS.navy
let color = Color.CSS.tomato
ck.fg(color)
ck.bg(color)
//...
Chalk
Expressive styling on terminal string.
Highlights
String
Usage
Chalk’s API is very similar to chalk – one of the most popular packages on npm.
Styles
Modifiers
Colors
The powerful color system is built on Rainbow.
Ansi16
256/TrueColoe
Built-in 100+ beautiful colors
Install
Acknowledge
Inspired by the awesome javascript library chalk.
Related
Contribute
If you find a bug, open an issue, if you want to add new features, feel free to submit a pull request. Any contributing is welcome at all times!