Colors

Extend default terminal messages by adding colors. You can set colors for foreground and background.

Available colors are: black, red, green, yellow, blue, magenta, cyan, white, gray, crimson

import color from "@utils/colors";
// fg as foreground and bg as background
console.log(`${color.fg.red}Hello in red ${color.reset}.`);

Last updated