I have been unable to locate an example using tcolorbox
which sets the color and width of the line below the frame title independent of the background color of the frame title. With mdframed
one can control these via frametitlerulecolor=red
and frametitlerulewidth=4pt
:
What are the equivalent options when using tcolorbox
?
Code:
\documentclass{article}
\usepackage{xcolor}
\usepackage[tikz]{mdframed}
\usepackage{tcolorbox}
\mdfsetup{
roundcorner=4pt,
linewidth=1.5pt,
frametitlerule=true,
frametitlebackgroundcolor=olive!15,
% ----------------------------------
frametitlerulecolor=red,% How do I get the equivalent of two
frametitlerulewidth=4pt,% options when using {tcolorbox}?
}
\tcbset{
fonttitle=\bfseries,
coltitle=black,
colbacktitle=olive!15,
}
\begin{document}
\begin{mdframed}[backgroundcolor=green!25, frametitle={Mdframed}]
Content
\end{mdframed}
\begin{tcolorbox}[colback=green!25, title={Tcolorbox}]
Content
\end{tcolorbox}
\end{document}
titlerule=3mm
coltitlerule=
so that one can adjust the color as well.