I have a coloured box that i use, and it always takes up the whole line no matter the texts length. I would like it to stop with the text.
\usepackage[table,xcdraw]{xcolor}
\usepackage{tcolorbox}
\newtcolorbox{redbox} {colback=red! 5!white, colframe=red! 75!black}