I have a large textbook written and I wish to add color boxes around my theorems, lemmas, etc without changing my main text too much. Currently, each theorem environment is defined in the usual way, e.g.,
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem*{proposition*}{Proposition}
To add color boxes, I could of course use tcolorbox as in this answer. My problem is that tcolorbox's theorems are defined like
\begin{theorem}{theorem name}{reference}
whereas my 1000-page textbook define theorems using
\begin{theorem}{theorem name}\label{reference}
So my question is:
Is there any way of getting around this. I.e., redefining the theorem-environment so that I would still be able to reference theorems using the usual \label{reference}?
Many thanks in advance!