A dynamic UI library for creating desktop and mobile applications.
Licenced by the Subnodal Open-Source Licence.
Importing subUI into your project is simple! Just add these two lines to the
<head>
of your HTML code:
<link rel="stylesheet" href="https://cdn.subnodal.com/lib/subui/subui.min.css">
<script src="https://cdn.subnodal.com/lib/subui/subui.min.js"></script>
If you want to host subUI yourself, you'll need to build subUI (see next
section) and instead reference subui.min.css
and subui.min.js
in the dist
folder. All of the other files in the dist
folder are needed, too.
Ensure that you have subPack and
subDoc installed first. The dist.py
script will then invoke subPack and subDoc when building, and will also
additionally minify the CSS files for distribution.
To test or distribute subUI, run:
$ python3 dist.py
You'll need to install the csscompressor
dependency if you haven't already:
$ python3 -m pip install csscompressor
Use py -3
instead of python3
, since the latter is generally for UNIX-like
systems.
When distributing to the Subnodal CDN, the dist/
directory should be copied to the CDN under the directory name lib/subui/
.