Skip to content

Search

themeScript

ConstantTheme Source

An inline script that applies the saved theme as the page loads, and keeps it in step with the system setting. Put it in <head> on server-rendered pages, so the page draws in the right theme. ThemeToggle renders it too.

const themeScript: string

design-system is a Ben Hodgson projectGitHub