Skip to main content

Crate undercoat

Crate undercoat 

Source
Expand description

undercoat: a native Rust compiler from less / scss → CSS.

Parsing is delegated to oxc-css-parser (which produces a span-carrying AST); this crate handles @import / @use assembly, evaluation, selector expansion, and printing, with no Node runtime required.

Both dialects share one output intermediate representation and printer; all output-shape differences live in doc::Style. The evaluation cores are independent (the value models differ; see docs/architecture.md).

Conformance baseline: less 4.1.3; scss capabilities match dart-sass 1.93.2 and output shape matches 1.35.2.

Structs§

CompileError
Compile error: path / line / column are present only when a location was matched.
LessOptions
Options specific to the less pipeline (the scss pipeline does not read them).
Options
Compilation options.
Output
Compilation output.

Functions§

compile_file
Compilation entry point: dispatches on the file extension.