A theme definition maps log levels, style presets, and tags to arrays of color/style names. Keys are StylePreset strings such as 'info', 'error', 'success', or custom presets. Tags can have associated styles that are automatically applied.
Optional
Tag-specific styles that are automatically applied when tags are used. Maps tag names to arrays of color/style names.
{ * info: ['cyan', 'bold'], * error: ['brightRed', 'bold'], * header: ['brightWhite', 'bgBlue', 'bold'], * tags: { * api: ['cyan', 'bold'], * database: ['yellow'], * critical: ['white', 'bgRed', 'bold'] * } * } Copy
{ * info: ['cyan', 'bold'], * error: ['brightRed', 'bold'], * header: ['brightWhite', 'bgBlue', 'bold'], * tags: { * api: ['cyan', 'bold'], * database: ['yellow'], * critical: ['white', 'bgRed', 'bold'] * } * }
A theme definition maps log levels, style presets, and tags to arrays of color/style names. Keys are StylePreset strings such as 'info', 'error', 'success', or custom presets. Tags can have associated styles that are automatically applied.