# zarm **Repository Path**: mirrors_opencollective/zarm ## Basic Information - **Project Name**: zarm - **Description**: 基于React、React-Native 的移动端UI组件库 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Zarm

[![Build Status](https://www.travis-ci.org/ZhonganTechENG/zarm.svg?branch=master)](https://www.travis-ci.org/ZhonganTechENG/zarm) [![Coverage Status](https://img.shields.io/coveralls/ZhonganTechENG/zarm/master.svg)](https://coveralls.io/github/ZhonganTechENG/zarm?branch=master) [![npm package](https://img.shields.io/npm/v/zarm.svg)](https://www.npmjs.org/package/zarm) [![NPM downloads](https://img.shields.io/npm/dm/zarm.svg)](https://npmjs.org/package/zarm) ![JS gzip size](https://img.badgesize.io/https://unpkg.com/zarm@latest/dist/zarm.min.js?compression=gzip&label=gzip%20size:%20JS) ![CSS gzip size](https://img.badgesize.io/https://unpkg.com/zarm@latest/dist/zarm.min.css?compression=gzip&label=gzip%20size:%20CSS) 众安科技移动端UI组件库,基于React、React-Native。
## Version 版本 - 稳定版:[![npm package](https://img.shields.io/npm/v/zarm.svg)](https://www.npmjs.org/package/zarm) - 开发版:[![npm package](https://img.shields.io/npm/v/zarm/alpha.svg)](https://www.npmjs.org/package/zarm) ## Install 安装 使用npm安装: ```bash npm install zarm --save ``` 或者通过cdn引入umd模块: ```html ``` ## Usage 使用 ### 全组件引入 ```js import { Button, Cell } from 'zarm'; import 'zarm/dist/zarm.min.css'; ``` ### 按需加载 - 方法一(推荐) > 使用 [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) 自动加载Sass文件 ```js // .babelrc or babel-loader option { "plugins": [ ['import', { libraryName: 'zarm', style: true, }], ] } ``` ```js import { Button, Cell } from 'zarm'; ``` - 方法二: ```js import Button from 'zarm/lib/Button'; import 'zarm/lib/Button/style'; ``` ### 定制主题 通过修改css变量定义达到定制主题的效果 ```js document.documentElement.style.setProperty('--theme-primary', '#108ee9'); ``` 变量名可参考 [default.scss](https://github.com/ZhonganTechENG/zarm/blob/dev/components/style/themes/default.scss) ## Changelog 更新日志 [CHANGELOG.md](https://github.com/ZhonganTechENG/zarm/blob/master/CHANGELOG.md) ## License MIT