kimono
A terminal style toolkit inspired by CSS and lipgloss for truecolor 24-bit terminals. Made for elegant TUIs.
Image terminal rendering done by our sister project ukiyeo.
cargo add kimono
Examples
Text can be styled.
use *;
const STYLE: Style = new.bold.color;
Unicode text can be padded, bordered, and positioned.
use *;
const STYLE: Style = new
.padding_top
.padding_left
.padding_right
.padding_bottom
.border
.border_style
.border_color
.border_background
.color
.background;
Text can be constrained to width and/or height.
use *;
const STYLE: Style = new
.padding
.color
.width
.background;
Text can be measured.
(8, 5)
use *;
const STYLE: Style = new
.padding
.color
.width
.background;
Borders have advanced styling.
use *;
const STYLE: Style = new
.padding
.color
.background
.border
.italic
.border_style
.border_color
.border_background;
Text can be aligned.
use *;
const STYLE: Style = new
.padding
.color
.background
.border
.width
.text_align;
Art
Kimono patterns inspired from Unix terminals.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in kimono
by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.