fatih/color
Color package for Go (golang) observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 94
- Release rhythm 43
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 514
- age_days: 4580
- days_rel: 166
- days_push: 41
- n_releases_24m: 2
Adoption not part of the score
7997 stars · 643 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Go package for producing colorized terminal output using ANSI escape codes, with Windows support and 24-bit RGB colors. It offers helper functions, composable color objects, and custom print/fprint/sprint function factories.
Use cases
- add colored output to a Go CLI tool
- print warnings and errors in red in the terminal
- use 24-bit RGB colors in terminal output
- colorize log messages in a Go application
- mix bold, underline, and foreground colors in console output
- write colored text to a custom io.Writer
When to choose
- you are writing a Go command-line or server app that needs colored terminal output
- you need cross-platform color support including Windows
- you want a small, widely adopted, stable library with a simple API
When to avoid
- you need full TUI widgets or layout, not just colors (use a TUI framework like Bubble Tea or tview)
- your output is not a terminal (files, CI logs without ANSI support)
- you are not programming in Go
Facets
library · maturity stable
cli developer-tools terminal-ui developer-tools cross-platform go windows cli ansi-colors terminal-output colorized-logging rgb-truecolor command-line linux macos
5 sources
- readme: https://github.com/fatih/color · fetched 2026-08-28 · be2a31fc7785
- homepage: https://pkg.go.dev/github.com/fatih/color · fetched 2026-08-29 · b53faee4a8d8
- site_page: https://go.dev/about · fetched 2026-08-29 · 8b6453863a90
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| fatih/color | main | 77 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem