use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Custom style cannot contain spaces or curly braces")]
InvalidSyntax,
#[error("Invalid color value")]
InvalidColor,
#[error("Color value out of bounds: expected between {0} and {1}")]
OutOfBounds(u8, u8),
#[error("Failed to acquire lock")]
LockPoisoned,
}