css-to-mp.macro

0.0.1 • Public • Published

css-to-mp.macro

Yet another css to mp macro, it's stay very simple, next version will be enhanced.

Usage

import css from 'css-to-mp.macro'

const styles = css`
  .container {
    flex: 1;
    justify-content: center;
    align-items: center;
    height: 100rpx;
  }
  .text {
    font-size: 12;
    font-weight: bold;
    color: #fefefe;
    padding-left: 20px;
  }
`

Warn: varible should be transform to value, maybe incorrect dynamic changed by props/state.

Readme

Keywords

none

Package Sidebar

Install

npm i css-to-mp.macro

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

6.38 kB

Total Files

7

Last publish

Collaborators

  • ygmpkk