rusty_style 0.1.1

Rusty Style is a library for styling text in the terminal.
Documentation

Introduction

  • Rusty Style is a Terminal Utility to style your TUI project.

  • It is mainly inspired by lipgloss, a golang TUI library.

  • It is built using the build design pattern.

Example

use rusty_style::color::Color;

let my_style = rusty_style::style::Style::new()
  .bold()
  .italic()
  .underline()
  .foreground(Color::new(255, 0, 0))
  .background(Color::new(0, 0, 255))
  .set_string("Hello");

let rendered_string = my_style.render("World"); // render will happen the text to Hello

Warning.

  • 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!)

Support me.

  • Thanks for looking at this repository, if you like to press the ⭐ button!
  • Made by Edward Elton.