CssStyle

Swift
public enum CssStyle: Sendable

How the Sass compiler should format the CSS it produces.


Topics

case expanded

Each selector and declaration is written on its own line.

Declaration
Swift
case expanded

case compressed

The entire stylesheet is written on a single line, with as few characters as possible.

Declaration
Swift
case compressed

case nested

CSS rules and declarations are indented to match the nesting of the Sass source.

Declaration
Swift
case nested

case compact

Each CSS rule is written on its own single line, along with all its declarations.

Declaration
Swift
case compact