postcss-deep-scopable
postcss-deep-scopable
unified deep scoped style postcss plugin for vue
Note: This is not only supports a limited list of scoped less/sass|scss selectors but also supports custom selectors.
- /deep/
>>>> > >- your custom deep selectors
Installation
npm install --save postcss-deep-scopable
Usage
const postcss = require('postcss');
const postcssDeepScopable = require('postcss-deep-scopable');
postcss([ postcssDeepScopable() ]).process(myCss).css
// or add a custom deep css selector or selectors
postcss([ postcssDeepScopable('&scoped&') ]).process(myCss).css
postcss([ postcssDeepScopable(['&scoped&', '%reveal%']) ]).process(myCss).css
input example: custom selectors
// input scss/less...
&scoped& .app, %reveal% .main {
text-align: center;
color: red;
}
output example
// output css
::v-deep .app, ::v-deep .main {
text-align: center;
color: red;
}
License
MIT
Related Packages
vue-styled-components
Visual primitives for the component age. A simple port of styled-components 💅 f...
242,901
1,376
postcss-mobile-forever
PostCSS 伸缩视图转换插件。To adapt different displays by one mobile viewport.
84,254
481
vue3-styled-components
Visual primitives for the component age. A simple port of styled-components 💅 f...
82,476
52
@magister_zito/vue3-styled-components
Visual primitives for the component age. A simple port of styled-components 💅 f...
6,448
7
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.1 | >= 2.6.11 < 3 | MIT | |
| 1.0.0 | >= 2.6.11 < 3 | MIT | |
| 0.0.2 | >= 2.6.11 < 3 | MIT | |
| 0.0.1 | >= 2.6.11 < 3 | MIT |