% Gruvbox colors
\definecolor{dark0_hard}{HTML}{1d2021}
\definecolor{dark0}{HTML}{282828}
\definecolor{dark0_soft}{HTML}{32302f}
\definecolor{dark1}{HTML}{3c3836}
\definecolor{dark2}{HTML}{504945}
\definecolor{dark3}{HTML}{665c54}
\definecolor{dark4}{HTML}{7c6f64}
\definecolor{medium}{HTML}{928374}
\definecolor{light0_hard}{HTML}{f9f5d7}
\definecolor{light0}{HTML}{fbf1c7}
\definecolor{light0_soft}{HTML}{f2e5bc}
\definecolor{light1}{HTML}{ebdbb2}
\definecolor{light2}{HTML}{d5c4a1}
\definecolor{light3}{HTML}{bdae93}
\definecolor{light4}{HTML}{a89984}
\definecolor{bright_red}{HTML}{fb4934}
\definecolor{bright_green}{HTML}{b8bb26}
\definecolor{bright_yellow}{HTML}{fabd2f}
\definecolor{bright_blue}{HTML}{83a598}
\definecolor{bright_purple}{HTML}{d3869b}
\definecolor{bright_aqua}{HTML}{8ec07c}
\definecolor{bright_orange}{HTML}{fe8019}
\definecolor{neutral_red}{HTML}{cc241d}
\definecolor{neutral_green}{HTML}{98971a}
\definecolor{neutral_yellow}{HTML}{d79921}
\definecolor{neutral_blue}{HTML}{458588}
\definecolor{neutral_purple}{HTML}{b16286}
\definecolor{neutral_aqua}{HTML}{689d6a}
\definecolor{neutral_orange}{HTML}{d65d0e}
\definecolor{faded_red}{HTML}{9d0006}
\definecolor{faded_green}{HTML}{79740e}
\definecolor{faded_yellow}{HTML}{b57614}
\definecolor{faded_blue}{HTML}{076678}
\definecolor{faded_purple}{HTML}{8f3f71}
\definecolor{faded_aqua}{HTML}{427b58}
\definecolor{faded_orange}{HTML}{af3a03}

% Dark mode
% \pagecolor{light0_hard}
% \color{dark0_hard}
% \pagecolor{dark0_hard}
% \color{light0_hard}

% section headings in bright colors, \titleformat from titlesec package
\titleformat{\section}
  {\color{neutral_purple}\normalfont\Large\bfseries}
  {\color{neutral_purple}\thesection}{1em}{}

\titleformat{\subsection}
  {\color{neutral_blue}\normalfont\large\bfseries}
  {\color{neutral_blue}\thesubsection}{1em}{}

\titleformat{\subsubsection}
  {\color{neutral_aqua}\normalfont\normalsize\bfseries}
  {\color{neutral_aqua}\thesubsubsection}{1em}{}

\titleformat{\paragraph}
  {\color{neutral_green}\normalfont\normalsize\bfseries}
  {\color{neutral_green}\theparagraph}{1em}{}

\titleformat{\subparagraph}
  {\color{neutral_purple}\normalfont\normalsize\bfseries}
  {\color{neutral_purple}\thesubparagraph}{1em}{}

\hypersetup{
  colorlinks=true,
  linkcolor=neutral_purple,
  citecolor=neutral_green,
  filecolor=neutral_blue,
  urlcolor=neutral_orange
}
