@huement/ui
v0.5.7
Published
HUI is a BS5 based css framework, with an emphasis on typography and creating a visually pleasing layout. Perfect for text heavy applications, like a blog.
Downloads
35
Maintainers
Readme
using Bootstrap 5 to create a 'visually pleasing' harmonic layout. Content focused with a neat typographic system.
@huement/ui aka hui, really shines when used in a text heavy content setting, such as a blog page, where it can greatly improve the overall reading experience.
hui is easily configured via SCSS $_Variables
. You know the drill, load in your custom variables, then build with npm run build:css
to produce a CSS file (and optionally a custom SVG based icon font with build:icons). Simply load that resulting CSS file into whatever HTML5 based application you're developing and you're good to go! Alternatively before you run any code, you can install the precompiled CSS provided in the repo, or play around with the kitchensink HTML demo, either way are a great way to try things out first.
SPECIAL NOTE
HUI is a passion project that has gone through a couple revisions. It finally has a roadmap to completion and is activly being worked into a state where other users might find it useful. Please check back soon, sometime after Q1 2025.
The current version 0.5.0 is getting close to being able to be used. When I do an actual release, it MIGHT be worth your time, until then, I would avoid using this for anything besides messing about because it is subject to breaking changes.
TABLE OF CONTENTS
━▶ SECTIONS OVERVIEW
hui is designed to be SIMPLE! The folder structure is a testament to that principle.
- bin ❱ command line scripts
- dist ❱ finalized output
- public ❱ static files
- src ❱ SCSS framework
- tokens ❱ design variables
- web ❱ documentation & demo content
NOTES: • Everything in the public folder is copied to the /dist/ folder on build. • /dist/ is routinely deleted. Never attempt to make a permanent change to anything in that folder directly. Modify /scss/ and rebuild.
━▶ INSTALLING
TODO: npm install (needs to be added to npm) TODO: HTML snippets < link href='' /> TODO: SCSS import snippet
━▶ SCSS Framework Building
TODO: this part needs a lot of work
STYLE + DESIGN TOKENS
- tokens/icons ❱ TODO Fantasticon details
- tokens/chords.json ❱ TODO explain how to generate this
- stack.json + color_tokens.json ❱ TODO sort out the token color files
━▶ SVG Icon Font Tools
TODO: this part needs a lot of work
━▶ Command Line Tool
The /bin/
directory in the root of the repository contains a number of scripts that are used to build HUI and can assist you in creating a custom version of the library as well as the icon kit.
node bin/cli.cjs
Running that main command will allow you to use a menu and easily access the other scripts and their parameters.
⬦ Colors
TODO: add in info about the CLI colors command
⬦ Typography Chords
In trying to create a "HARMONIC" layout, one that is visually pleasing, HUI attempts to break your typography into different chords. A Chord in music a combination of notes at the same time, in our CSS file, a chord is all the type settings for a given breakbreak. So how does H1 - H6 look at 500px vs how they are going to read at 1500px.
By treating each screen size as a different chords, it helps you keep in mind not just the screen size, but the atmosphere around that screen. Think about listening to a video on your phone vs on your TV. Totally different expereinces, and its not just because the screen is bigger. For that reason, on mobile phones, readability is important, but so is size. Large margins on smaller screens annoy your users, and create unwanted or unintended breaks when things are crunched down to one massive column.
.... etc more about chords get other markdown files pasted in here.
TODO: add in info about the CLI typography chords command
@huement/ui | HUEMENT USER INTERFACE
version | 0.5.*
codename | mojo