chromakitx 1.0.2

A comprehensive color manipulation library for Rust
Documentation
// SPDX-FileCopyrightText: 2023 CELESTIFYX Team
// SPDX-License-Identifier: GPL-3.0-or-later

mod macros;

pub mod constants;
pub mod error;
pub mod models;
pub mod utils;
pub mod color;
pub mod colors;
pub mod helpers;
pub mod colored_string;

pub use color::Color;
pub use colored_string::ColoredString;

pub use colors::{
    AnsiColor,
    CssColor,
    TextStyle,
    CustomColor,
    NamedColor,
    XtermColor,
    AnyColor
};

pub use error::{
    ColorError,
    InvalidColorError,
    ColorConversionError
};

pub use models::{
    RGB,
    HSL,
    HSV,
    HEX
};

pub trait ColorFormattable {
    fn format(&self, is_background: bool) -> String;
}