defmodule SimpleshopTheme.Theme.CSSGenerator do @moduledoc """ Generates CSS custom properties (Layer 2: Theme Tokens) from theme settings. This module converts ThemeSettings into CSS variables that bridge the gap between fixed primitives (Layer 1) and semantic aliases (Layer 3). For the shop (public pages), this generates ALL theme tokens inline, so the shop doesn't need the attribute-based selectors in theme-layer2-attributes.css. The theme editor still uses those selectors for live preview switching. """ alias SimpleshopTheme.Settings.ThemeSettings @doc """ Generates CSS for theme settings. Returns a string of CSS custom properties that can be injected into a