项目作者: lc-ui

项目描述 :
A UI component framework for building LCUI application.
高级语言: C
项目地址: git://github.com/lc-ui/lc-design.git
创建时间: 2017-06-17T08:34:22Z
项目社区:https://github.com/lc-ui/lc-design

开源协议:MIT License

下载







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:

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

    1. # Install with default options
    2. lcpkg install github.com/lc-ui/lc-design
    3. # For x64 CPU architecture
    4. lcpkg install github.com/lc-ui/lc-design --arch x64
    5. # For Universal Windows Platform (UWP) and x64 CPU architecture
    6. 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:

  1. pip install misaka pygments
  2. npm install

Build Targets

  1. npm run build # Build all targets.
  2. npm run build-bin # Build binary files.
  3. npm run build-css # Build css file.
  4. npm run build-font # Build iconfont file.
  5. npm run build-demo # Build demo application.
  6. npm run build-demo-assets # Build assets of demo application.
  7. npm run build-demo-bin # Build binary file of demo application.
  8. npm run build-demo-css # Build css file of demo application.
  9. npm run build-demo-docs # Build documentations of demo application.
  10. 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.

  1. yourapp/
  2. ├── app/
  3. ├── assets/
  4. ├── stylesheets/
  5. ├── app.css
  6. └── lcui.css
  7. ├── views/
  8. ├── app.xml
  9. └── ...
  10. ├── fonts/
  11. └── iconfont.ttf
  12. ├── images/
  13. └── ...
  14. └── ...
  15. ├── src/
  16. ├── scss/
  17. ├── lib/
  18. ├── ui/
  19. └── ...
  20. └── ...

Design reference

Creator

Liu Chao:

Code released under the MIT License.