ThemeSpec is a theme specification that can be used across a variety of projects to quickly theme them based on CSS vars. Themes are scoped and multiple can be used at the same time in an application. ThemeSpec is fully compatible with darkmode and any theme can have dark variants.
Defines the dark mode strategy.
SystemStrategy uses the user system settings.ClassStrategy uses the presence of a CSS class to determine dark mode.Renders an element that showcases all the current theme's colors and settings.