CSS
css``#
Constructable Stylesheets with <style> fallback
adoptStyles()#
deduplicated stylesheet adoption
scopedStyle()#
@scope with class-prefix fallback
Styles#
css.layer('components')``, scopedStyle() without touching el.id (one sheet per text, ref-counted, removed with the scope)
media(), reducedMotion, theme()#
media queries and dark mode as signals with color-scheme; defaults.motion = false turns animations off for tests and honours prefers-reduced-motion in spring/flip/transition