0.0.11 • Published 6 years ago

csstag-base v0.0.11

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

csstag-base

Installation

$ npm install csstag-base babel-plugin-transform-csstag

Set up babel

.babelrc

{
  "plugins": ["babel-plugin-transform-csstag"]
}

Example

const {css} = require('csstag-base');

const position = 'absolute';

const testSheet = css`
  .test-node {
    display: flex;
    background-position: ${position};
    &:hover {
      text-decoration: underline;
    }
  }
`;
// output
// { '.test-node':
//    { display: 'flex',
//      'background-position': 'absolute',
//      '&:hover': { 'text-decoration': 'underline' } } }

API

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago