Rusty Style
- Rusty Style is a Terminal Utility to style your TUI project.
- It is mainly inspired by lipgloss, a golang TUI library.
Rusty style is built on the builder design pattern. Designing your TUI is easier than ever with Rusty Style.
For a simple demo, take a look into the examples directory.
use ;
Rusty Style supports True Color:
new // pink
new // green
new // purple
convert_hex_to_rgb.unwrap // cerse
convert_hex_to_rgb.unwrap // amaranth
convert_hex_to_rgb.unwrap // bisque
Rusty Style supports the usual ANSI text formatting options:
let style = new
bold.
faint.
italic.
underline.
blink.
reverse.
invisible.
strikethrough;
When using render, you will lose ownership of your style because render is made to be used once you are done with your style. If you want to keep your style object we recommend you to clone your style.
let style = new;
let my_copy = style.clone;
- If you have any suggestions, problems, open a problem (if it is an error, you must be sure to look if you can solve it with Google!)
- Thanks for looking at this repository, if you like to press the ⭐ button!
- Made by Edward Elton.