I want to use different colored tcolorboxes. Is there an easy way to avoid all that typing for every single box by using \newcommand
or a macro?
\begin{tcolorbox}[
colframe=blue!25,
colback=blue!10,
coltitle=blue!20!black,
title= More Test]
\begin{enumerate}
\item Test
\end{enumerate}
\end{tcolorbox}
Best Answer
The
tcolorbox
package provides a macro called\newtcolorbox
to define custom environments; see section 2 in the manual (top of p12, in the current version). Under the assumption that you just want to change the colour, not the tints/shades, you could define a new environment that accepts three arguments (the first of which is optional):tcolorbox
optionsSee below.