Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 461 Bytes

File metadata and controls

21 lines (14 loc) · 461 Bytes

@clack/color

Native styleText with a cool DX à la chalk.

import c from "@clack/color";

// Function style
console.log(c.red.bgWhite("Hello, World!"));

// Template literal style
console.log(c.red.bgWhite`Hello, ${name}!`);

Create your own styles:

import { createStyleText } from "@clack/color";

export const warning = createStyleText("yellow", "underline");