Initialize the theme system when your application loads. The function applies themes in priority order: stored theme from localStorage, system preference (if enabled), or default theme.
import { initTheme } from '@alex.radulescu/styled-static';// Basic usageinitTheme();// With system preference detectioninitTheme({ useSystemPreference: true });// Full configurationinitTheme({ defaultTheme: 'light', storageKey: 'my-app-theme', useSystemPreference: true,});