Zero-Dependency Core
Farben-core has zero mandatory dependencies. Only optional features like anstyle interop pull in external crates when you opt in.
Color your terminal without typing whatever the heck '\x1b[31m' is.
Farben-core has zero mandatory dependencies. Only optional features like anstyle interop pull in external crates when you opt in.
Color your terminal output using intuitive tags like [red], [bold], [rgb(255,0,0)], and chain them like [bold red] or [italic hsl(0,100,50)].
Bold, dim, italic, underline, double-underline, blink, rapid-blink, reverse, invisible, strikethrough, overline.
Named, ANSI 256, RGB, HSL, HSV/HSB, HWB, Lab, LCH, OKLCh, and hex notation. All work everywhere.
Zero runtime overhead, completely opt-in using the library's "compile" feature. Changes nothing but the function calls being macros.
Define your own styles, either as an alias or as a design token-like behavior. Change [error] to be [bold red], and add a prefix when calling them.
Enable the inline feature to write *bold*, /italic/, `code`, ~strikethrough~, and _underline_ directly inside any cprint!/cprintln! call.
Convert Farben styles to and from anstyle::Style for use with clap, ratatui, and other anstyle-using crates.