Skip to content

Commit 455f105

Browse files
Merge pull request #60 from TastefulElk/feat/important-log-color
style: change logger.important styling
2 parents ba2ad7e + fd2e523 commit 455f105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/logger.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ function log(...args: any[]) {
2424
*/
2525
function important(...args: any[]) {
2626
args = args.map((arg) =>
27-
typeof arg === 'string' ? chalk.hex(orange)(arg) : arg,
27+
typeof arg === 'string'
28+
? chalk.bold(chalk.bgMagenta(chalk.black(arg)))
29+
: arg,
2830
);
2931
console.log(...args);
3032
}

0 commit comments

Comments
 (0)