{"repo":"g-plane/malva","free":true,"listed":false,"github":"https://github.com/g-plane/malva","clone":"git clone https://github.com/g-plane/malva.git","description":"Configurable, smart and fast CSS, SCSS, Sass and Less formatter with dprint integration.","language":"Rust","stars":126,"topics":["css","dprint","formatter","formatting","less","prettier","sass","scss","dprint-plugin"],"license":"MIT","category":"dev-tools","readme_excerpt":"🌷 Malva Malva is a configurable, smart and fast CSS, SCSS, Sass and Less formatter. Why? Configurable Malva is configurable. It provides several configuration options so you can control the code style as you want. Given the example below: This selector is short enough to be put on single line, so Malva will put it on a single line by default, instead of forcing it to be splitted into multiple lines. However, if you prefer putting into multiple lines, you can configure it. Smart Given the example below: There're comments inside selector. Some formatters will fail to format it, but Malva will format as: Try this on playground. Also, thanks to the Raffia parser, Malva supports cutting edge CSS syntaxes like @container . Support (indented) Sass Malva supports indentation-based Sass, not just SCSS. Quick Start Try It Online If you just want a quick try, you can try with the online playground. dprint We've provided dprint integration. Run the command below to add plugin: After adding the dprint plugin, update your dprint.json and add configuration: You can also read dprint CLI documentation for using dprint to format files. Configuration Please refer to Configuration. FAQ My CSS code is in HTML, Vue, Svelte and Astro files. How can I format them? If you're using dprint, you can use markup fmt which provides a dprint plugin, then you can use these two plugins together. Credit Tests come from Prettier. License MIT License Copyright (c) 2023-present Pig Fang","default_branch":null,"files":null,"tree":[],"storefront":"/r/g-plane","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/g-plane/malva/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}