PSA: We've centralized all terminal ANSI styles in...
# 💻|contributing
b
PSA: We've [centralized all terminal ANSI styles in a single map](https://github.com/garden-io/garden/pull/5375) and replaced calls to
chalk
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.