npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

@oberd/postcss-classnames

1.1.3 • Public • Published

PostCSS Classnames

Instead of combining classnames from PostCSS objects using typical object syntax, write classes like you normally would with this helper function.

Usage

npm i -S @oberd/postcss-classnames
import globalStyles from '../styles.css';
import moduleStyles from './button.css';
import classnames from '@oberd/postcss-classnames';
 
const css = classnames(globalStyles, moduleStyles);
 
css('button-class global-class');
// Will return class string for rendering
// 'Button__button-class__2 Global__global-class__1'

Keywords

none

install

npm i @oberd/postcss-classnames

Downloadsweekly downloads

8

version

1.1.3

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability