A simple terminal styling library for Lua
local c = require("color")
print(c.green .. "Green text" .. c.reset)
print(c.bright_cyan .. "Bright cyan text" .. c.reset)
print(c.bg_red .. "Red background" .. c.reset)
print(c.bright_blue_bg .. "Bright blue background" .. c.reset)
print(c.italic .. c.red .. "Italic red text" .. c.reset)
print(c.underline .. "Underlined text" .. c.reset)
print(c.bold .. "Bold text" .. c.reset)
print(c.rgb(66, 135, 245) .. "RGB text" .. c.reset)
print(c.bg_rgb(212, 19, 208) .. "RGB background" .. c.reset)
print(c.hex("#eb3496") .. "HEX color" .. module.reset)
print(c.bg_hex("#77eb34") .. "HEX background" .. module.reset)blackredgreenyellowbluemagentacyanwhite
bg_blackbg_redbg_greenbg_yellowbg_bluebg_magentabg_cyanbg_white
bright_black_bgbright_red_bgbright_green_bgbright_yellow_bgbright_blue_bgbright_magenta_bgbright_cyan_bgbright_white_bg
bolddimitalicunderlineinversestrikethrough
c.rgb(r, g, b) -- Foreground color
c.bg_rgb(r, g, b) -- Background colorc.hex(hex) -- Foreground color
c.bg_rgb(hex) -- Background color