🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

postcss-grid-unit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-grid-unit

A PostCSS plugin to create custom measurement units to ease grid enforcement.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

postcss-grid-unit

A PostCSS plugin to create custom grid units to ease grid enforcement. Inspired by Mark Goodyear's postcss-vertical-rhythm.

Examples

Given options

{
  units: [
    {unit: 'u', size: 8},
    {unit: 'lu', size: 32},
  ],
}

and input

.block {
  margin-bottom: 1u;
  padding-top: 2lu;
}

output will be

.block {
  margin-bottom: 8px;
  padding-top: 64px;
}

Usage

Install:

npm install postcss-grid-unit --save-dev

Then include the plugin:

postcss([ require('postcss-grid-unit')(options) ])

See [PostCSS] docs for examples for your environment.

Licence

Released under the MIT license.

Keywords

postcss

FAQs

Package last updated on 30 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts