gray-naming-in-libs.md
March 11, 2026 · View on GitHub
Color naming in libraries: gray vs grey vs blackBright
The same ANSI codes 90 (gray) and 100 (bgGray) are named differently in various libraries.
| Library | StandardgraybgGray | UK spellinggreybgGrey | Spec-styleblackBrightbgBlackBright |
|---|---|---|---|
| ansis | ✅ | ❌ | ❌ |
| yoctocolors | ✅ | ❌ | ❌ |
| kolorist | ✅ | ❌ | ❌ |
| colors.js | ✅ | ✅ | ❌ |
| picocolors | ✅ | ❌ | ✅ |
| tinyrainbow | ✅ | ❌ | ✅ |
| colorette | ✅ | ❌ | ✅ |
| chalk | ✅ | ✅ | ✅ |
| ansi-colors | ✅ | ✅ | ✅ |
| kleur (8 colors) | ✅ | ✅ | - |
| cli-color | ❌ | ❌ | ✅ |
| colors-cli | ❌ | ❌ | ✅ |
| styleText | ✅ | ✅ | ✅ |
Ansis prefers the more intuitive and commonly used names gray and bgGray, avoiding redundant aliases.