Expose style names (#566)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
This commit is contained in:
parent
96f44c976b
commit
d7d75717b3
3 changed files with 26 additions and 0 deletions
|
|
@ -209,4 +209,9 @@ export {
|
|||
stderrColor as supportsColorStderr,
|
||||
};
|
||||
|
||||
export const modifiers = Object.keys(ansiStyles.modifier);
|
||||
export const foregroundColors = Object.keys(ansiStyles.color);
|
||||
export const backgroundColors = Object.keys(ansiStyles.bgColor);
|
||||
export const colors = [...foregroundColors, ...backgroundColors];
|
||||
|
||||
export default chalk;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue