New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
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.

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

It does not allow adding !important to just some declarations

This plugin is useful for a Utility-Based aproach to CSS.

Why should i use Important?

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