brief-restaurant-63679
11/13/2023, 5:29 PMchalk
with calls to styles
.
In most cases you shouldn't have to apply styles at all since the logger applies sensible defaults.
But if you do, you should use styles
instead of chalk
. E.g., styles.highglight
instead of chalk.cyan
The goal is to keep this consistent and also to make it easier to change styles (e.g. change styles.primary
from one color to another).
There's also styles for common "elements" such as styles.link
, styles.command
and styles.section
.
Using styles
instead of chalk
is otherwise not enforced at the code elvel but we can revisit if things start drifting again.