3.1.6 • Published 6 years ago

vxv v3.1.6

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

Features

  • Tiny: VXV does not bloat you bundle
  • Powered by tagged template literals
  • Namespaced: VXV automatically namespaces your css
  • Modular: Import css from js files
  • Isomorphic: VXV works in node and in browsers, this is great for server side rendering
  • Just CSS: VXV does not force you to learn anything new, it's just good old css.

Install

$ npm install vxv

Usage

VXV supports standard css(with some extras). It returns a simple class name that you can use to access the styles.

const vxv = require('vxv');
const xou = require('xou');

const styles = vxv`
font-family: sans-serif;

// Nested elements have to be tagged by an &.
& h1 {
  color: red;
}

& p {
  color: blue;
}
`;

const element = xou`<div class="${ styles }">
  <h1>I am red.</h1>
  <p>I am blue.</p>
</div>`;

document.body.appendChild(element);

License

MIT © Tobias Herber

3.1.6

6 years ago

3.1.5

6 years ago

3.1.4

6 years ago

3.1.3

6 years ago

3.1.2

6 years ago

3.1.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.0

7 years ago

0.0.0

7 years ago