Giter Club home page Giter Club logo

zarm's Introduction

Zarm

Build Status Coverage Status JS gzip size CSS gzip size NPM downloads dependencies Status peerDependencies Status devDependencies Status Netlify Status FOSSA Status Gitter

众安科技基于 React、React-Native 研发的一款适用于企业级的移动端UI组件库。

Zarm 的命名,灵感来源于众安保险秉承的理念:做有温度的保险。Zarm = za + warm,za代表“众安”,warm有“温暖”的含义,以重合的a字母为中心,各取左右两部分。追求极致的用户体验,致力于做有温度的组件库也是zarm项目发起的初衷。

版本

  • npm package

浏览器支持

  • iOS
  • Android 4.0+

安装

使用 npm 或 yarn 安装(推荐)

# npm
npm install zarm --save

# yarn
yarn add zarm

或者通过 link 和 script 标签分别引入样式文件和js脚本文件(不推荐)

<link rel="stylesheet" href="https://unpkg.com/zarm/dist/zarm.min.css">
<script type="text/javascript" src="https://unpkg.com/zarm/dist/zarm.min.js"></script>

使用

全组件引入

import { Button, Cell } from 'zarm';
import 'zarm/dist/zarm.min.css';

按需加载

注意:zarm 默认支持基于 ES module 的 tree shaking,不使用以下插件也会有按需加载的效果。

  // .babelrc or babel-loader option
  {
    "plugins": [
      ['import', {
        libraryName: 'zarm',
        style: true, // or 'css'
      }],
    ]
  }
import { Button, Cell } from 'zarm';
  • 手动引入
import Button from 'zarm/lib/button'; // 加载js
import 'zarm/lib/button/style/css'; // 加载css
// import 'zarm/lib/button/style'; // 加载scss

定制主题

通过修改css变量定义达到定制主题的效果

document.documentElement.style.setProperty('--theme-primary', '#108ee9');

变量名可参考 default.scss

社区

issue gitter 微信群
github issue ZhonganTech/zarm

开源协议

MIT

FOSSA Status

zarm's People

Contributors

jeromelin avatar edison-hm avatar sylvanasgone avatar hzzheng avatar newraina avatar sambiggod avatar sanheng avatar lduoduo avatar zhiyingzzhou avatar nancyzhujy avatar thyiad avatar struggle-lulu avatar hezhirong avatar cheng007 avatar chrishchen avatar zwblogone avatar whatwewant avatar lsert avatar dependabot[bot] avatar sscassie avatar jinasonlin avatar xueqingxiao avatar fossabot avatar xiaoshuangli avatar qingshuijiandou avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.