Prettify CSS
About this CSS prettifier
This prettifier is powered by @projectwallace/format-css. These are the formatting rules:
- Every AtRule starts on a new line
- Every Rule starts on a new line
- Every Selector starts on a new line
- A comma is placed after every Selector that’s not the last in the SelectorList
- Every Block is indented with 1 tab more than the previous indentation level
- Every Declaration starts on a new line
- Every Declaration ends with a semicolon (;)
- An empty line is placed after a Block, unless it’s the last in the surrounding Block
- Multiline tokens like Selectors, Values, etc. are rendered on a single line
- Unknown syntax is rendered as-is, with multi-line formatting kept intact
- Formatting happens only on your computer, no code is sent to our servers.