Giter VIP home page Giter VIP logo

lc-design's Introduction

LCDesign

GitHub Actions Build Status License Github Release Github All Releases Repo size Code size

A UI component framework for building LCUI application.
Explore LCDesign docs »


Table of contents

Introduction

(English/中文)

LC Design Preview

LCDesign (LC's Design) is a UI component framework for building LCUI application, it provides basic styles for typography and elements, simple layout system, CSS components and utilities. Its CSS code is based Bootstrap, so its usage is basically the same as Boostrap.

Note: This is not a component library for the web front end, you can't use the web browser to experience the effect, the correct way is to download the source code, then build it, and then run the demo.

Components

Quick start

Several quick start options are available:

  • Clone and run the lc-ui/lc-design-app repository to preview:

    # Clone this repository
    git clone https://github.com/lc-ui/lc-design-app
    
    # Go into the repository
    cd lc-design-app
    
    # Install NodeJS dependencies
    npm install
    
    # Install C/C++ dependencies for x64 CPU architecture
    lcpkg install --arch x64
    
    # Run the app with debug mode
    lcpkg run start --mode debug
  • Install with lcpkg

    # Install with default options
    lcpkg install github.com/lc-ui/lc-design
    
    # For x64 CPU architecture
    lcpkg install github.com/lc-ui/lc-design --arch x64
    
    # For Universal Windows Platform (UWP) and x64 CPU architecture
    lcpkg install github.com/lc-ui/lc-design --arch x64 --platform uwp
  • Download the latest release.

If your operating system is not Windows, please continue reading below.

Build

LCDesign does not have a binary package for Linux, you need to manually download the source code and build it.

Prerequisites

Building LCDesign has the following dependencies:

  • XMake - a build tool for compiling C source code
  • NodeJS - a JavaScript runtime for run build tools
  • Python - a environment for run python build tools

After installing them, you need to run the following command to install the other dependencies:

pip install misaka pygments
npm install

Build Targets

npm run build               # Build all targets.
npm run build-bin           # Build binary files.
npm run build-css           # Build css file.
npm run build-font          # Build iconfont file.
npm run build-demo          # Build demo application.
npm run build-demo-assets   # Build assets of demo application.
npm run build-demo-bin      # Build binary file of demo application.
npm run build-demo-css      # Build css file of demo application.
npm run build-demo-docs     # Build documentations of demo application.
npm run demo                # Run demo application.

Install

Copy the files from the dist directory to your project directory, and configure your project assets include path.

We recommend that you use the following directory structure, this will be able to directly copy the files from the dist/assets/ directory to yourapp/app/ directory.

yourapp/
├── app/
│   ├── assets/
│   │   ├── stylesheets/
│   │   │   ├── app.css
│   │   │   └── lcui.css
│   │   ├── views/
│   │   │   ├── app.xml
│   │   │   └── ...
│   │   ├── fonts/
│   │   │   └── iconfont.ttf
│   │   ├── images/
│   │   └── ...
│   └── ...
├── src/
│   ├── scss/
│   ├── lib/
│   ├── ui/
│   └── ...
└── ...

Design reference

Creator

Liu Chao:

Legal

Code released under the MIT License.

lc-design's People

Contributors

fe1fan avatar lc-soft avatar waruqi 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lc-design's Issues

Add label widget

Example:

<w type="label" for="input-email"></w>
<w type="edit" id="input-email"></w>

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

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.