Component-Specific Themes

This demo follows the guide's implementation steps for light-dark() and color-scheme overrides.

System Default

I follow your OS theme. My scrollbar and dropdown below adapt automatically.

Scroll down to see the themed scrollbar. The browser handles this because of the root color-scheme.

More content...

End of content.

Forced Dark

I am ALWAYS dark. Notice my dark scrollbars and dropdown, even if your OS is in light mode.

My scrollbar is dark because color-scheme: dark is forced on this container.

More content...

End of content.

Nested Theme Island (Forced Dark)

This section is forced to dark. The card inside picks up the theme correctly.

Inherited Dark

I am a standard card inheriting a dark context from my parent.