1 # PostCSS SCSS Syntax [![Build Status][ci-img]][ci]
3 <img align="right" width="95" height="95"
4 title="Philosopher’s stone, logo of PostCSS"
5 src="http://postcss.github.io/postcss/logo.svg">
7 A [SCSS] parser for [PostCSS].
9 **This module does not compile SCSS.** It simply parses mixins as custom
10 at-rules & variables as properties, so that PostCSS plugins can then transform
11 SCSS source code alongside CSS.
13 [PostCSS]: https://github.com/postcss/postcss
14 [ci-img]: https://img.shields.io/travis/postcss/postcss-scss.svg
15 [SCSS]: http://sass-lang.com/
16 [ci]: https://travis-ci.org/postcss/postcss-scss
18 <a href="https://evilmartians.com/?utm_source=postcss">
19 <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54">
26 npm --save install postcss-scss
29 or (if you use [Yarn](https://yarnpkg.com/))
32 yarn add --dev postcss-scss
38 There are two ways to use this parser:
40 ### 1. SCSS Transformations
42 The main use case of this plugin is to apply PostCSS transformations directly
45 For example, you can lint SCSS source with [Stylelint]
46 and linter will automatically fix issues in the source.
51 syntax: 'postcss-scss',
58 [Stylelint]: http://stylelint.io/
61 ### 2. Inline Comments for PostCSS
63 Also you can use this parser just to add `//` single-line comment
64 to your PostCSS project (without any Sass):
73 Note that you don’t need a special stringifier to handle the output; the default
74 one will automatically convert single line comments into block comments.
79 parser: 'postcss-scss',
86 If you want Sass behaviour with removing inline comments, you can use
87 [postcss-strip-inline-comments] plugin.
89 [postcss-strip-inline-comments]: https://github.com/mummybot/postcss-strip-inline-comments