Skip to content

Commit 461be51

Browse files
committed
feat(util): palette color
1 parent af204ee commit 461be51

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export { default as getNativeName } from './get-native-name';
66
export { default as isError } from './is-error';
77
export { Failure, Info, Success, Warning } from './notify';
88
export { default as padContent } from './pad-content';
9-
export { magenta } from './palette';
9+
export { gray, magenta, yellow } from './palette';
1010
export { Polysemy, Sentence, Source, Synonym, Translation } from './typography';

src/utils/palette.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
export const gray = (content: string) => `\x1b[90m${content}\x1b[39m`;
2+
13
export const magenta = (content: string) => `\x1b[35m${content}\x1b[39m`;
4+
5+
export const yellow = (content: string) => `\x1b[33m${content}\x1b[39m`;

0 commit comments

Comments
 (0)