Skip to content

Themes

NameSource
draculaJetBrains / Dracula palette
nordNord
catppuccinCatppuccin (Mocha)
monokaiMonokai
darkNeutral dark (CLI-style)
lightNeutral light (light terminals)

Apply any of them by name:

from loguru import logger
from loguru_themes import apply_theme
apply_theme(logger, "monokai")

Sample output of every level under each theme (the theme name is shown in each window’s title bar):

dracula theme log output

nord theme log output

catppuccin theme log output

monokai theme log output

dark theme log output

light theme log output

The 16-color palette of each theme — the colors native tags like <red> / <RED> map to:

dracula palette

nord palette

catppuccin palette

monokai palette

dark palette

light palette

from loguru_themes import list_themes
list_themes()
# ['catppuccin', 'dark', 'dracula', 'light', 'monokai', 'nord']

Names are case-insensitive ("Dracula" works). An unknown name raises a KeyError listing the available names.

from loguru_themes import get_theme
theme = get_theme("dracula")
theme.levels["INFO"].color # '#bd93f9'
theme.accent, theme.dim, theme.fg

Useful when you want to inspect or customize a theme, or reference its colors in your own format.

  • ERROR renders the message text in red (like the standard logging look).
  • CRITICAL renders the message bold on a red background to stand out.

Both are configurable per level — see Customizing.

dark/light are tuned for dark/light terminal backgrounds respectively; dracula, nord, catppuccin, and monokai are dark-background palettes.