0.1.7 • Published 6 years ago

postcss-spacing-utils v0.1.7

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

postcss-spacing-utils

Generates spacing utility classes from user settings.

Install

npm install --save-dev postcss-spacing-utils

OR

yarn add --dev postcss-spacing-utils

Usage

The plugin requires a single configuration variable, spacers, an array of CSS sizes from which to generate spacing utils.

Add your settings to your postcss configuration, e.g.:

module.exports = {
  plugins: {
    'postcss-spacing-utils': {
      // Your options, or empty to use the defaults.
    },
  },
};

Defaults

Leave your settings empty to use the following defaults.

{
    spacers: [
        '0',
        '.375rem',
        '.75rem',
        '1.5rem',
        '2.25rem',
        '3rem',
        '4.5rem',
        '6rem',
    ],
}

Generated CSS classes

The generated classes are identical to those generated by Bootstrap 4. See Bootstrap's documentation for details.

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago