css-scope

1.0.0 • Public • Published

CSS-scope

This module puts given css input in scope of a class

/* module-a.css */
p {
  color: white;
}
var scopePrefix = '.module-a';
var cssContent = fs.readFile('module-a.css', ...);
var scopedCss = scope(cssContent, scopePrefix, options);

Results in

.module-a p {
  color: white;
}

Readme

Keywords

none

Package Sidebar

Install

npm i css-scope

Weekly Downloads

0

Version

1.0.0

License

none

Last publish

Collaborators

  • oskarwalker