recon_gen.common.l2.theme

Theme palette as an L2 model concept.

Lives under common/l2/ because — per N.1 — every L2 instance carries its own brand inline in the YAML, so the ThemePreset dataclass is a piece of the L2 model rather than an app-shared registry concept.

common/theme.py re-exports ThemePreset from here for back-compat and owns the QuickSight Theme resource builder (build_theme) plus the single DEFAULT_PRESET fallback used when an L2 instance omits its inline theme: block (N.4.l dropped the lookup-by-name registry; only the one default fallback remains).

Classes

ThemePreset(theme_name, version_description, ...)

Everything that varies between theme variants.

class recon_gen.common.l2.theme.ThemePreset(theme_name, version_description, analysis_name_prefix, data_colors, empty_fill_color, gradient, primary_bg, secondary_bg, primary_fg, secondary_fg, accent, accent_fg, link_tint, danger, danger_fg, warning, warning_fg, success, success_fg, dimension, dimension_fg, measure, measure_fg, logo=None, favicon=None)[source]

Bases: object

Everything that varies between theme variants.

Parameters:
  • theme_name (str)

  • version_description (str)

  • analysis_name_prefix (str | None)

  • data_colors (list[str])

  • empty_fill_color (str)

  • gradient (list[str])

  • primary_bg (str)

  • secondary_bg (str)

  • primary_fg (str)

  • secondary_fg (str)

  • accent (str)

  • accent_fg (str)

  • link_tint (str)

  • danger (str)

  • danger_fg (str)

  • warning (str)

  • warning_fg (str)

  • success (str)

  • success_fg (str)

  • dimension (str)

  • dimension_fg (str)

  • measure (str)

  • measure_fg (str)

  • logo (str | None)

  • favicon (str | None)

accent: str
accent_fg: str
analysis_name_prefix: str | None
danger: str
danger_fg: str
data_colors: list[str]
dimension: str
dimension_fg: str
empty_fill_color: str
favicon: str | None
gradient: list[str]
measure: str
measure_fg: str
primary_bg: str
primary_fg: str
secondary_bg: str
secondary_fg: str
success: str
success_fg: str
theme_name: str
version_description: str
warning: str
warning_fg: str