# al-ui

> UI for labrador component

Latest version **0.1.1** (published 2016-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install al-ui
pnpm add al-ui
yarn add al-ui
bun add al-ui
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-11-22 |
| First published | 2016-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | liang |
| Maintainers | liangxingchen |

## Links

- npm: https://www.npmjs.com/package/al-ui
- Repository: https://github.com/maichong/al-ui
- Homepage: https://github.com/maichong/al-ui#readme
- Issues: https://github.com/maichong/al-ui/issues
- npm.io page: https://npm.io/package/al-ui

## Recent versions

- 0.1.1 (latest) — 2016-11-22
- 0.1.0 — 2016-11-21

## README

# al-ui

Labrador 组件基础样式库

> 目前基础样式类已经完备，但是各种组件样式仍在不断开发中

## 使用

在你的组件less样式文件中直接引用，然后就可以在你的样式文件中使用less变量和mixin

```less

@import 'al-ui';

.foo{
  .padding-bottom-large;
  color: @success;
  font-size: @font-size-large;
}

```

也可以直接在组件的XML中使用已定义的class

```xml
<view class="margin-large">
  <button class="btn btn-success btn-block">Submit</button>
</view>
```

不必担心引用整个样式库会导致你的组件的less文件变得非常庞大，因为在发布小程序时运行 `labrador build -m` 命令的 `-m` 参数能够强力压缩less文件，会将未用到的所有class全部丢弃，只保留XML中用到的。

## 贡献

欢迎你向本项目贡献代码，开发本项目步骤为：

```sh
# 克隆项目到本地
git clone https://github.com/maichong/al-ui.git
cd al-ui

# 安装依赖
npm install

# 编辑 templates 目录下的 .swig 文件

# ...

# 编译
npm run build
```

> 注意，项目中的所有 `*.less` 文件均为编译生成，请勿直接修改，开发时应修改 `templates` 目录下对应的 `*.swig` 文件。

除此之外，我们强烈推荐使用 [labrador-dev](https://github.com/maichong/labrador-dev) 环境进行开发。

---
_Source: https://npm.io/package/al-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
