Skip to content

LiveG-Development/Adapt-UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adapt UI

Adapt UI, the user interface design language by LiveG Technologies.

Adapt UI is a library that allows developers to easily create stylish apps and sites using pre-built components and models. The library provides theming, localisation support, accessibility support and more!

Want to see how good it looks? Try out our live demo! You can also see the script behind it too.

A preview thumbnail of Adapt UI.

Designers: We're busily compiling a guide for Adapt UI and its specifications. It will be available soon!

Prerequisites

In order to use (and contribute to) Adapt UI, you'll need the following installed:

  • Zapr (with Zapr added to your PATH)
  • Python 3 (with the py utility added to your PATH)
  • PIP (can be installed on Linux with the python3-pip package)

Using Adapt UI

To use Adapt UI, it is highly recommended for you to have Zapr installed ─ Zapr is a tool made by LiveG that allows you to integrate libraries with ease and package your apps into single, standalone HTML files.

In your script file for your project, you'll need the following Zapr directive line:

// @import https://opensource.liveg.tech/Adapt-UI/src/ui

If you want to include the AppLayout model to create a proper app layout (including headers, sidebar menus and dialogs), you'll need the following Zapr line too:

// @import https://opensource.liveg.tech/Adapt-UI/src/models/applayout/model

You'll also need to include the basic structure that makes up the skeleton of your app's UI design as shown in our Hello example ─ the source code is on GitHub and is also open-source.

Note: If you're using our Hello example, you won't need the build directory as that is automatically generated every time you use Zapr to build your app. The build directory contains the final product in which the code inside it is generally unreadable by humans (obfuscated) in order to save space.

When you need to build and test your project, just run these commands in your app's directory:

$ zapr build app
$ zapr serve

You can then go to http://127.0.0.1:5000 to test your project.

In addition to building apps with Adapt UI, you can also build static sites (with optional help from Zapr). Just include the following lines in your HTML page:

<link rel="stylesheet" href="https://opensource.liveg.tech/Adapt-UI/src/imports.css">
<link rel="stylesheet" href="https://opensource.liveg.tech/Adapt-UI/src/style.css">

Contributing to Adapt UI

Adapt UI is open-source and is subject to the licence terms in the LiveG Open-Source Licence. That means that you can use Adapt UI on your projects, and adapt (pardon the pun) it into whatever you want!

To test Adapt UI, go to your terminal and go to one of the test directories (for example tests/all) and type:

$ zapr build app
$ zapr serve

You can then see the results on http://127.0.0.1:5000.

Note: For LiveG employees who have push access to this repository and if the demos are built correctly, you should see your changes on opensource.liveg.tech.

About

Adapt UI, the user interface design language by LiveG Technologies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published