Giter VIP home page Giter VIP logo

zensui's Introduction

ZensUI logo

Downloads Travis CI Version License LastCommit Stars

More Introduction | Api Documents | 中文版介绍

What is Zens UI

This UI frame is inspired by CMUI.

Zens UI provides a handy, semantic, and highly compatible UI framework. Committed to helping developers build their web apps quickly. At the same time ZensUI is also cross-platform

platforms supported:

Quick Start

Install

npm install --save-dev zens-ui

import css file

@import '~zens-ui/scss/ZensUI.scss'

Usage

Basic Example

If you need a red rounded button in document, you just need write css style code like below

<button class="btn red radius">my button</button>

It will be rendered like below:

As you see, .btn described what element it will be, .red and .radius are modifiers, they described what this element will look like.

More button's usages

  <button class="btn">Basic button</button>
  <button class="btn gray pill">Gray pills like button</button>
  <button class="btn big hollow red radius">Big hollow round button</button>
  <button class="btn black small">Small black button</button>

Further Example

Zens UI has several containers, they are designed to quickly implement layout.

  • img-container:image container
  • flex-container:flex layout container
  • flex-row-container:flex layout container

img-container's usage is like below:

<div class="img-container round" style="width: 100px; height: 100px;">
  <img src="https://via.placeholder.com/100x100" alt="">
</div>

It will be rendered like below:

npm package content

In npm package, ZensUI.css is designed for common web developers, and ZensUI.mp.css is designed for weixin mini program developers

ZensUI/
    ├─ dist/                                           
    │     └── css/                      
    │         ├─ZensUI.css 
    │         ├─ZensUI.css.map
    │         ├─ZensUI.min.css
    │         ├─ZensUI.min.css.map 
    │         ├─ZensUI.mp.css
    │         ├─ZensUI.mp.css.map
    │         ├─ZensUI.mp.min.css
    │         └─ZensUI.mp.min.css.map    
    └─ scss/ 
       └─ZensUI.scss  

License

Everything is MIT

zensui's People

Contributors

royidoodle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

saviour2008

zensui's Issues

ZensUI优化点

  • 1. demo去除对于vue的依赖。因为不是每个人都了解vue。修改为只依赖htmlscss

  • 2. flexible.js是否对于PC端和Mobile端区别处理,最终达到PC端不对根节点字体进行修改,Mobile端修改。

ZensUI目前还存在的问题

  • 1. 移动端的支持是需要flexible.js的支持的,所以应该在dist/目录中将flexible.js暴露出去。

  • 2. 为了支援习惯于下载的用户,应该在dist中暴露中出所有结果资源,如.css .js

  • 3. 移动端应该使用rem单位。对应修改rpx()方法。

  • 4. ZensUI应该有自己的normalize.css,便于去除浏览器的样式。

  • 5. 在dist/中暴露scss目录,便于用户使用

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.