0.2.1 • Published 4 years ago

greentown-ui v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

gt-ui

未来社区小程序组件库

Rem 适配

使用前请安装vscode 插件 px to rem gt-ui 中的样式默认使用px作为单位,如果需要使用rem单位,推荐使用以下两个工具:

  • postcss-pxtorem 是一款 postcss 插件,用于将单位转化为 rem
  • lib-flexible 用于设置 rem 基准值

PostCSS 配置 下面提供了一份基本的 postcss 配置,可以在项目根目录新建postcss.config.js, 根据项目需求进行修改

module.exports = {
  plugins: {
    autoprefixer: {
      browsers: ['Android >= 4.0', 'iOS >= 8'],
    },
    'postcss-pxtorem': {
      rootValue: 16,
      propList: ['*'],
    },
  },
};

Build Setup

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.0

4 years ago