Skip to main content

Module css

Module css 

Source
Expand description

Builtin CSS transform via lightningcss.

Authors write modern CSS (nesting, range media, modern colors, …). statica compiles it to browser-ready CSS — no user PostCSS config.

Used for linked stylesheets under asset dirs and for <style> in HTML (including fragment-scoped styles).

Functions§

transform_and_scope
Flatten modern CSS, apply [data-s="…"] scoping, then minify.
transform_css
Compile modern CSS → browser-ready CSS.