Adding a gradient to tcolorbox colbacktitle

tcolorbox

I honestly do not know where to begin.

Is it possible, instead of using a single color for the colbacktitle to input a gradient?

Best Answer

The cover of tcolorbox documentation shows an example and the code is just on second page:

\documentclass{standalone}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcolorbox}[enhanced,
    title style={left color=red, right color=green}, title=This is the title]
    Some text
\end{tcolorbox}
\end{document}

enter image description here

Related Question