glamor-prefix-rules

0.1.2 • Public • Published

glamor-prefix-rules

add prefix to every CSS rules from glamor

Because of the way CSS rules are working, you might want to prefix every CSS rules from glamor so that you can make sure they are having priority over less important CSS rules that you do not control.

Usage

npm install -S glamor glamor-prefix-rules
import glamor from 'glamor';
import prefixRules from 'glamor-prefix-rules';
 
glamor.plugins.add(prefixRules('#my-app'))
 
glamor.css({ display: 'block' });

Output

#my-app .css-fisw11#my-app [data-css-fisw11]{
  display:block;
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    5
  • 0.1.1
    2
  • 0.1.0
    2

Package Sidebar

Install

npm i glamor-prefix-rules

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • exon