[Tex/LaTex] Setting tcolorbox border width

tcolorbox

I am trying tcolorbox for the first time and want to create a tcolorbox environment that has thick red borders.

This was my attempt:

\tcolorboxenvironment{titleEnv}{center,
width=0.75\linewidth,
opacityback=0,
standard jigsaw,
halign=center,
borderline west={1mm}{0mm}{red},
borderline east={3mm}{0mm}{red},
borderline south={3mm}{0mm}{red},
borderline north={1mm}{0mm}{red}
}

It makes a nice transparent box, but the border lines are thin and black.

Any suggestions?

Thanks

Best Answer

The following should be closer to the desired output:

enter image description here

\documentclass{article}
\usepackage[most]{tcolorbox}

\newtcolorbox{titleEnv}{
center,
width=0.75\linewidth,
halign=center,
colframe=red,
colback=white
}


\begin{document}

\begin{titleEnv}
some contents
\end{titleEnv}

\end{document}

Update regarding different border widths:

enter image description here

\documentclass{article}
\usepackage[most]{tcolorbox}

\newtcolorbox{titleEnv}{
center,
width=0.75\linewidth,
halign=center,
colframe=red,
colback=white, 
boxrule=1pt,
rightrule=3pt,
bottomrule=3pt
}


\begin{document}

\begin{titleEnv}
some contents
\end{titleEnv}

\end{document}

The thicker border on the bottom and left side of the box reminded me of a drop shadow, so here is such a version as well:

enter image description here

\documentclass{article}
\usepackage[most]{tcolorbox}

\newtcolorbox{titleEnv}{
 enhanced jigsaw,
center,
width=0.75\linewidth,
halign=center,
colframe=red,
colback=white, 
boxrule=1pt,
drop shadow=red,%
}


\begin{document}

\begin{titleEnv}
some contents
\end{titleEnv}

\end{document}
Related Question