You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Colorette continues to work as-is. No need to do anything.
To override color-detection, there's a new createColors(options) that returns an object with all the available color functions. Terminal support is auto-detected, override it via options.useColor.
options.enabled has been removed in favor of createColors(options).
There's a new isColorSupported constant export.
true if the terminal supports color, false otherwise.
If you were previously using options.enabled and wish to override automatic color detection, use createColors().
If you're upgrading from
1.x
:createColors(options)
that returns an object with all the available color functions. Terminal support is auto-detected, override it viaoptions.useColor
.options.enabled
has been removed in favor ofcreateColors(options)
.isColorSupported
constant export.true
if the terminal supports color,false
otherwise.If you were previously using
options.enabled
and wish to override automatic color detection, usecreateColors()
.The text was updated successfully, but these errors were encountered: