diff --git a/preamble.tex b/preamble.tex
@@ -14,8 +14,10 @@
\usepackage{imakeidx}
\usepackage{thmtools}
-% Set the default accent color
+% Set the default colors
\definecolor{mosgreen}{RGB}{29, 135, 17}
+\definecolor{thmbackground}{RGB}{249, 249, 249}
+\definecolor{thmrule}{RGB}{230, 230, 230}
% Configure fonts
\usepackage[T1]{fontenc}
@@ -49,35 +51,33 @@
\setenumerate[0]{label={\normalfont \bfseries(\roman*)}}
% Useful theorem definitions
-\newtheoremstyle{coloredtheorem}{}{}{\em}{}{\bf\color{mosgreen}}{.}{ }{}
-\newtheoremstyle{coloreddefinition}{}{}{}{}{\bf\color{mosgreen}}{.}{ }{}
+\newtheoremstyle{coloredtheorem}{}{}{\em}{}{\bf\color{mosgreen}}{}{.5em}{}
+\newtheoremstyle{coloreddefinition}{}{}{}{}{\bf\color{mosgreen}}{}{.5em}{}
\newtheoremstyle{coloredremark}{}{}{}{}{\itshape\color{mosgreen}}{.}{.5em}{}
\declaretheorem[
- shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+ shaded={rulecolor=thmrule, rulewidth=1pt, bgcolor=thmbackground, margin=8pt},
style=coloredtheorem,
parent=chapter]{theorem}
\declaretheorem[
- shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+ shaded={rulecolor=thmrule, rulewidth=1pt, bgcolor=thmbackground, margin=8pt},
style=coloredtheorem,
sibling=theorem]{lemma}
\declaretheorem[
- shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+ shaded={rulecolor=thmrule, rulewidth=1pt, bgcolor=thmbackground, margin=8pt},
style=coloredtheorem,
sibling=theorem]{corollary}
\declaretheorem[
- shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+ shaded={rulecolor=thmrule, rulewidth=1pt, bgcolor=thmbackground, margin=8pt},
style=coloredtheorem,
sibling=theorem]{proposition}
\theoremstyle{coloredremark}
\newtheorem*{note}{Remark}
\declaretheorem[
- shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
+ shaded={rulecolor=thmrule, rulewidth=1pt, bgcolor=thmbackground, margin=8pt},
+ style=coloredtheorem,
style=coloreddefinition,
sibling=theorem]{definition}
-\declaretheorem[
- shaded={rulecolor=mosgreen, rulewidth=2pt, bgcolor=white, margin=4pt},
- style=coloreddefinition,
- sibling=theorem]{example}
+\declaretheorem[style=coloreddefinition, sibling=theorem]{example}
% Custom page style
\fancypagestyle{custom}{%