0.3.0 • Published 1 year ago

@singlestone/postcss-preset-sugar v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

postcss-preset-sugar

PostCSS preset for Sugar.

Installation

Inside the Sugar monorepo, install it with a dev dependency like so:

{
  "devDependencies": {
    "@singlestone/postcss-preset-sugar": "workspace:^"
  }
}

Outside the monorepo, install it with an actual version instead of workspace:^.

Usage

Set up your postcss.config.js like so:

const { sugarPostcssPresetFn } = require("@singlestone/postcss-preset-sugar");

module.exports = (ctx) => sugarPostcssPresetFn(ctx);

You can make any changes or overrides you might want to make by destructuring the results.