import streamlit as st
from typing import Literal
# =============================
# AETHER THEME — THE SOUL OF DATA
# =============================
# Designed for emotional resonance, cognitive ease, and timeless elegance.
# Light = Celestial Dawn | Dark = Nebula Night
# No clutter. No noise. Just clarity, crafted.
LIGHT = """
"""
DARK = """
"""
def apply_theme() -> None:
"""
Apply the current theme (light/dark) with zero FOUC (Flash of Unstyled Content).
Uses a single, optimized CSS injection with no redundant re-renders.
"""
try:
from theme import LIGHT, DARK
css = LIGHT if st.session_state.get("theme", "light") == "light" else DARK
st.markdown(css, unsafe_allow_html=True)
except Exception as e:
st.error("❌ Theme failed to load. Please refresh.")
print(f"[THEME ERROR] {e}")