@oberd/postcss-classnames
Helper function to transform class map objects from PostCSS to strings
Last updated 3 years ago by oberd .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @oberd/postcss-classnames 
SYNC missed versions from official npm registry.

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'

Current Tags

  • 1.1.3                                ...           latest (3 years ago)

6 Versions

  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 4
Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |