context_processors django_spire.core.context_processors THEME_COOKIE_NAME = 'django_spire-theme-mode' module-attribute django_spire Source code in django_spire/core/context_processors.py 15 16def django_spire(_request: WSGIRequest) -> dict[str, Any]: return {'DJANGO_SPIRE_VERSION': __VERSION__} theme_context Source code in django_spire/core/context_processors.py 19 20 21 22 23 24def theme_context(request: WSGIRequest) -> dict[str, Any]: default_mode = getattr(settings, 'DJANGO_SPIRE_DEFAULT_THEME_MODE', 'light') mode = request.COOKIES.get(THEME_COOKIE_NAME, default_mode) return {'DJANGO_SPIRE_THEME_COOKIE_NAME': THEME_COOKIE_NAME, 'DJANGO_SPIRE_THEME_MODE': mode} get_theme_cookie_name Source code in django_spire/core/context_processors.py 27 28def get_theme_cookie_name() -> str: return THEME_COOKIE_NAME