\ProvidesPackage{local}

\maxtocdepth{section}

\definecolor{base03}{HTML}{002B36}
\definecolor{base02}{HTML}{073642}
\definecolor{base01}{HTML}{586E75}
\definecolor{base00}{HTML}{657B83}
\definecolor{base0}{HTML}{839496}
\definecolor{base1}{HTML}{93A1A1}
\definecolor{base2}{HTML}{EEE8D5}
\definecolor{base3}{HTML}{FDF6E3}
\definecolor{yellow}{HTML}{B58900}
\definecolor{orange}{HTML}{CB4B16}
\definecolor{red}{HTML}{DC322F}
\definecolor{magenta}{HTML}{D33682}
\definecolor{violet}{HTML}{6C71C4}
\definecolor{blue}{HTML}{268BD2}
\definecolor{cyan}{HTML}{2AA198}
\definecolor{green}{HTML}{859900}

\colorlet{background}{base3}
\colorlet{primary-content}{base00}
\colorlet{bg-highlight}{base2}
\colorlet{secondary-content}{base1}
%\colorlet{list-content}{base0}
\colorlet{list-content}{primary-content}
\colorlet{list-bullets}{orange}
\colorlet{lvl1-color}{primary-content}
\colorlet{lvl2-color}{primary-content}
\colorlet{lvl3-color}{yellow}
\colorlet{lvl4-color}{green}

\colorlet{code-bg}{base3}

\usepackage{minted}

\setminted{bgcolor=code-bg, fontsize=\footnotesize}
\setmintedinline{bgcolor={}}

\newminted{tex}{frame=single}

\renewenvironment{verbatim}{%
  \VerbatimEnvironment%
  \begin{texcode}%
}{%
  \end{texcode}%
}

\newcommand{\twocol}[2]{%
\begin{minipage}[b][8.7cm][c]{0.5\linewidth}%
\centering
#1%
\end{minipage}%
\begin{minipage}[b][8.7cm][c]{0.5\linewidth}%
\centering
#2%
\end{minipage}%
}

\newcommand{\twocolcaption}[2]{%
\begin{minipage}{0.5\linewidth}%
\centering
#1%
\end{minipage}%
\begin{minipage}{0.5\linewidth}%
\centering
#2%
\end{minipage}%
}