1. vue-emotion
Seamlessly use emotion (CSS-in-JS) with Vue.js
vue-emotion
Package: vue-emotion
Created by: sky-foundry
Last modified: Tue, 28 Jun 2022 19:26:00 GMT
Version: 0.4.29
License: MIT
Downloads: 2,329
Repository: https://github.com/sky-foundry/vue-emotion

Install

npm install vue-emotion
yarn add vue-emotion

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code