macro_rules! hex { ($hex:expr) => { ... }; }
hex! macro to convert hex color to ansi color example: hex!(#FF0000) -> “\x1b[38;2;255;0;0m”