geeViz.outputLib.themes

Unified theme system for geeViz output libraries.

Provides a Theme class that holds all resolved color values for backgrounds, text, accents, borders, and chart styling. Used by charts, thumbs, and reports for consistent colors.

Usage:

from geeViz.outputLib.themes import get_theme

# Named presets
dark  = get_theme("dark")
light = get_theme("light")
teal  = get_theme("teal")

# Auto-generate from a single color
red_bg = get_theme(bg_color="#F00")           # dark text auto-picked
custom = get_theme(bg_color="#1a1a2e", font_color="#eee")

# Access colors in different formats
dark.bg_hex          # '#272822'
dark.bg_rgb          # (39, 40, 34)
dark.text_hex        # '#f8f8f2'
dark.is_dark         # True
dark.grid_rgba       # 'rgba(248,248,242,0.15)'

Functions

apply_plotly_theme(fig[, theme, bg_color, ...])

Apply a theme's colors to a Plotly figure in-place.

get_theme([theme, bg_color, font_color])

Resolve a Theme from a preset name, instance, or custom colors.

register_preset(name, theme)

Register a named theme preset for later retrieval via get_theme().

Classes

Theme(bg, text[, accent, highlight, ...])

Resolved color theme for geeViz visualizations.