gookit/color
🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows. GO CLI 控制台颜色渲染工具库,支持16色,256色,RGB色彩渲染输出,使用类似于 Print/Sprintf,兼容并支持 Windows 环境的色彩渲染 observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 85
- Release rhythm 49
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 246
- age_days: 2985
- days_rel: 124
- days_push: 90
- n_releases_24m: 2
Adoption not part of the score
1606 stars · 87 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library for rendering colored output in terminal/CLI applications, supporting 16-color, 256-color, and true color (RGB) modes. It offers Print/Sprintf-style APIs, HTML tag-style color markup, and works on Windows CMD and PowerShell.
Use cases
- add colored output to a go cli tool
- print colored text in windows cmd and powershell
- render 256 color and rgb true color in terminal
- convert hex or hsl colors to rgb for terminal output
- tag-based color markup like <green>message</> in go
- respect NO_COLOR and FORCE_COLOR environment variables
When to choose
- you are writing a Go CLI and need rich terminal colors
- you need Windows compatibility including 256/true color support
- you want a zero-dependency color library with a familiar Print/Sprintf API
When to avoid
- your project is not written in Go
- you only need simple logging levels rather than color control
- you need TUI layout widgets rather than just color rendering
Facets
library · maturity active
cli developer-tools terminal-ui developer-tools cross-platform go cli windows cross-platform terminal-colors ansi-colors true-color 256-color rgb-color zero-dependency cli-output command-line linux macos
2 sources
- readme: https://github.com/gookit/color · fetched 2026-08-28 · 5324b22e7e8e
- homepage: https://gookit.github.io/color/ · fetched 2026-08-29 · d0e79a1b1e1d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gookit/color | main | 75 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem