Releases: chalk/ansi-styles
Releases · chalk/ansi-styles
v4.2.0
v4.1.0
v4.0.0
3.0.0
This major release includes 256 and 16 million color codes via the color-convert
module.
See all possible conversions.
This module now requires Node.js 4 or higher.
Breaking changes
- ansiStyles.colors
+ ansiStyles.color
- ansiStyles.bgColors
+ ansiStyles.bgColor
- ansiStyles.modifiers
+ ansiStyles.modifier
New features
# 16 color codes
+ ansiStyles.color.ansi.rgb(r, g, b)
+ ansiStyles.color.ansi.hsl(h, s, l)
+ ansiStyles.color.ansi.hex('#ABCDEF')
# 256 color codes
+ ansiStyles.color.ansi256.rgb(r, g, b)
+ ansiStyles.color.ansi256.hsl(h, s, l)
+ ansiStyles.color.ansi256.hex('#ABCDEF')
# 16 million (RGB) color codes
+ ansiStyles.color.ansi16m.rgb(r, g, b)
+ ansiStyles.color.ansi16m.hsl(h, s, l)
+ ansiStyles.color.ansi16m.hex('#ABCDEF')