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 a theme's colors to a Plotly figure in-place. |
|
Resolve a |
|
Register a named theme preset for later retrieval via |
Classes
|
Resolved color theme for geeViz visualizations. |