How to use sugarss - 1 common examples

To help you get started, we’ve selected a few sugarss examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github postcss / postcss-mixins / index.js View on Github external
fs.readFile(relative, function (err, contents) {
              /* istanbul ignore if */
              if (err) {
                reject(err)
                return
              }
              var root
              if (ext === '.sss') {
                root = sugarss.parse(contents, { from: relative })
              } else {
                root = postcss.parse(contents, { from: relative })
              }
              root.walkAtRules('define-mixin', function (atrule) {
                defineMixin(result, mixins, atrule)
              })
              resolve()
            })
          } else {

sugarss

Indent-based CSS syntax for PostCSS

MIT
Latest version published 2 days ago

Package Health Score

85 / 100
Full package analysis

Popular sugarss functions