Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Oct 10, 2022
1 parent 79e9185 commit 553c468
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions source/vendor/ansi-styles/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,21 @@ export type ModifierName = keyof Modifier;

/**
Basic foreground color names.
[More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
*/
export type ForegroundColorName = keyof ForegroundColor;

/**
Basic background color names.
[More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
*/
export type BackgroundColorName = keyof BackgroundColor;

/**
Basic color names. The combination of foreground and background color names.
[More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
*/
export type ColorName = ForegroundColorName | BackgroundColorName;
Expand Down
5 changes: 3 additions & 2 deletions source/vendor/ansi-styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ function assembleStyles() {
}

const ansiStyles = assembleStyles();

export default ansiStyles;

export const modifierNames = Object.keys(styles.modifier);
export const foregroundColorNames = Object.keys(styles.color);
export const backgroundColorNames = Object.keys(styles.bgColor);
export const colorNames = [...foregroundColorNames, ...backgroundColorNames];

export default ansiStyles;

0 comments on commit 553c468

Please sign in to comment.