defmodule PhoenixKitWeb.Components.ThemeBootstrap do @moduledoc """ The pre-paint theme setup — palettes plus the stamp script — renders in `
`, before (or with) the stylesheets. Every page class had its own first-paint story and most of them flashed: the dashboard's `` carried no `data-theme` and applied the saved one from a script at the end of ``; the standalone admin hardcoded `data-theme="light"` and fixed it up on DOMContentLoaded; the kit's own root layout hardcoded light and ran no theme JS at all. A dark-mode user got a white flash on the first two and permanent light on the third. This component is the one shared answer: the custom-theme ` """ end end