Optional
forcedOptional
forcedForced theme name for the current page
Optional
nonceThe nonce value for your Content Security Policy.
Optional
stylesProvide a styles object imported from CSS/SCSS modules if you are using these modules to define theme and color-scheme classes.
All classes applied to the target are modified using the styles object as follows:
if (styles) classes = classes.map(cls => styles[cls] ?? cls);
Optional
targetCSS selector for the target element to apply the theme. Use this to specify a different target element than the default (html or documentElement). This is particularly useful for controlling the theme of different parts of the page independently.
Optional
themeThe transition property to enforce on all elements, preventing unwanted transitions during theme changes.
Forced color scheme for the current page