vue-emotion
Seamlessly use emotion (CSS-in-JS) with Vue.js
Last updated 2 years ago by acidic9 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vue-emotion 
SYNC missed versions from official npm registry.

vue-emotion

NPM version NPM downloads

emotion is the Next Generation of CSS-in-JS.

Install

yarn add emotion vue-emotion

Table of Contents

Usage

Create your styled component:

import styled from 'vue-emotion'

const Button = styled('button')`
  font-size: 15px;
`

const PinkButton = styled(Button)`
  color: pink
`

new Vue({
  render() {
    return (
      <div>
        <Button>normal button</Button>
        <PinkButton>pink button</PinkButton>
      </div>
    )
  }
})

Refer to https://github.com/tkh44/emotion for more docs.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

vue-emotion © Sky Foundry, Released under the MIT License.
Authored and maintained by Sky Foundry with help from contributors (list).

https://skyfoundry.agency · Website github.com/sky-foundry/vue-emotion · GitHub

Current Tags

  • 0.4.29                                ...           latest (2 years ago)

8 Versions

  • 0.4.29                                ...           2 years ago
  • 0.4.28                                ...           2 years ago
  • 0.4.27                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
Downloads
Today 2
This Week 5
This Month 17
Last Day 0
Last Week 2
Last Month 10
Dependencies (6)
Dev Dependencies (23)

Copyright 2014 - 2016 © taobao.org |