+\usepackage{pgfplots}
+\usepgfplotslibrary{dateplot}
+
+\usepackage{booktabs}
+\usepackage[scale=2]{ccicons}
+
+% optional metro things
+\metroset{numbering=fraction} % page numbering format
+\metroset{progressbar=foot} % progress bar in footer
+\metroset{sectionpage=none, subsectionpage=none}
+\metroset{block=fill}
+% \metroset{background=light}
+
+\setsansfont{OpenSans}[
+Path = ./fonts/OpenSans/,
+Extension = .ttf,
+UprightFont = *-Regular,
+BoldFont = *-Bold,
+ItalicFont = *-Italic,
+BoldItalicFont = *-BoldItalic
+]
+
+\setmonofont{RobotoMono}[
+Path = ./fonts/RobotoMono/,
+Extension = .ttf,
+UprightFont = *-Regular,
+BoldFont = *-Bold,
+ItalicFont = *-Italic,
+BoldItalicFont = *-BoldItalic
+]
+
+\definecolor{makopurple1}{RGB}{57,39,91}
+\definecolor{makopurple2}{RGB}{137,119,173}
+\definecolor{makopurple3}{RGB}{29,13,59}
+\definecolor{makopurple4}{RGB}{124,99,173}
+
+% \definecolor{makopurple1}{HTML}{3b255b}
+\definecolor{makogreen1}{HTML}{0b7a75}
+\definecolor{makovanilla1}{HTML}{d7c9aa}
+\definecolor{makoumber1}{HTML}{7b2d26}
+\definecolor{makowhite1}{HTML}{f0f3f5}
+
+\setbeamercolor{normal text}{fg=black, bg=white}
+\setbeamercolor{alerted text}{fg=makopurple4}
+\setbeamercolor{example text}{fg=makoumber1}
+
+\setbeamercolor{palette primary}{bg=makopurple1, fg=normal text.bg}
+\setbeamercolor{palette secondary}{bg=makogreen1,fg=normal text.bg}
+\setbeamercolor{palette tertiary}{bg=makovanilla1,fg=normal text.bg}
+\setbeamercolor{palette quaternary}{bg=makoumber1,fg=normal text.bg}
+\setbeamercolor{structure}{fg=makopurple1, bg=normal text.bg} % itemize, enumerate, etc
+\setbeamercolor{section in toc}{fg=makopurple1, bg=normal text.bg} % TOC sections
+
+% \setbeamercolor{progress bar}{fg=makopurple1}
+% \setbeamercolor{title separator}{fg=makopurple1}
+% \setbeamercolor{progress bar in head/foot}{fg=makopurple1}
+% \setbeamercolor{progress bar in section page}{fg=makopurple1}
+
+% this is a fix for a bug with XeTeX and notes pages
+% see: https://tex.stackexchange.com/questions/232168/normal-text-is-invisible-when-using-beamer-with-notes-and-xelatex
+\usepackage{ifthen}
+\makeatletter
+\def\beamer@framenotesbegin{% at beginning of slide
+ \ifthenelse{\not \boolean{metropolis@standout}}{%
+ \usebeamercolor[fg]{normal text}%
+ \gdef\beamer@noteitems{}%
+ \gdef\beamer@notes{}%
+
+ }{\gdef\beamer@noteitems{}%
+ \gdef\beamer@notes{}%
+ }
+}
+% redfine the notes type to clear things (working around the same bug)
+% https://tex.stackexchange.com/questions/28966/change-beamer-notes-list-type-for-in-frame-notes
+\def\beamer@setupnote{%
+ \gdef\beamer@notesactions{%
+ \beamer@outsideframenote{%
+ \beamer@atbeginnote%
+ {\normalfont%
+ \parskip 0.5em%
+ \usebeamercolor[fg]{normal text}%
+ \beamer@notes%
+ \ifx\beamer@noteitems\@empty\else
+ \beamer@noteitems%
+ \fi%
+
+ \par}
+ \beamer@atendnote%
+ }%
+ \gdef\beamer@notesactions{}%
+ }
+}
+\makeatother