postcss-class-prefix
A PostCSS plugin to prefix/namespace slds-
classes in the Lightning Design System's CSS.
This avoids collisions with other versions of the Salesforce Lightning Design System by prefixing your class names with a custom namespace.
Example input
Example output
sldsPrefix('custom-prefix')
Installation
npm install postcss-slds-prefix
Usage
var fs = ;var postcss = ;var sldsPrefix = ; var css = fs;var out = ;
License
MIT
Acknowledgements
- Based on postcss-class-prefix