Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-important-startstop

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-important-startstop

PostCSS plugin which adds !important based on simple start/stop annotations

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

postcss-important-startstop Build Status

PostCSS plugin which adds !important based on simple start/stop annotations. The scope of this plugin is very limited. It does only add !important to everty declaration between to annotations.

Nothing more.

What it not does for you

It does not check not check if important is allowed for that particular declaration.

It does not allow adding !important to just some declarations

It does not remove the comments you had to add

  • Use an other plugin for that

Why should I use Important?

This plugin is useful for a Utility-based approach to CSS.

You need some more Info about Utility-based CSS? See these links. I can highly recommend the article by Adam.

Examples

Plain

Input
/* @important(start) */
.john { display: block; }
/* @important(stop) */
Result
.john { display: block !important; }

With import

highly recommended for Utilities

/* @important(start) */
@import "myutilities.css";
/* @important(stop) */

Usage

postcss([ require('postcss-important-startstop') ])

See PostCSS docs for examples for your environment.

Keywords

FAQs

Package last updated on 28 Oct 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc