% Colors \definecolor{pagebackground}{HTML}{FFFFFF} \definecolor{sidebarbackground}{HTML}{f3f3f4} \definecolor{headercolor}{HTML}{6c6c6d} \definecolor{sidebartitle}{HTML}{24272B} \definecolor{sidebartext}{HTML}{6c6c6d} \definecolor{bodytitle}{HTML}{24272B} \definecolor{bodytext}{HTML}{6c6c6d} \definecolor{bulletcolor}{HTML}{6c6c6d} \definecolor{linkcolor}{HTML}{3E78B2} \definecolor{linecolor}{HTML}{24272B} \definecolor{name}{HTML}{FFFFFF} \definecolor{jobtitle}{HTML}{FFFFFF} \RequirePackage[pagecolor=pagebackground, nopagecolor=pagebackground]{pagecolor} % Defining font styles \newcommand{\sname}{\color{name}\fontsize{36pt}{36pt}\sffamily\addfontfeature{LetterSpace=3}\MakeUppercase} \newcommand{\sjobtitle}{\color{jobtitle}\fontsize{20pt}{20pt}\sffamily\addfontfeature{LetterSpace=5}\MakeUppercase} % Defining page styles \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} \fancyhead[C]{% \begin{tikzpicture}[remember picture,overlay] \node [rectangle, fill=headercolor, anchor=north west, minimum width=\paperwidth+1cm, minimum height=7.5cm] at ($(current page.north west)+(-1cm,1cm)$) {}; \end{tikzpicture} } % Default text color \AtBeginDocument{\colorlet{defaultcolor}{.}} \color{bodytext} % Layout for name, job title and sidebar \newcommand{\makeprofile}{% \vspace*{-1cm} {\setstretch{3} \begin{adjustbox}{minipage=[c][2.5cm]{.9\textwidth}} {\sname\name} \end{adjustbox}} {\setstretch{1.8} \begin{adjustbox}{minipage=[c][1.5cm]{.9\textwidth}} {\sjobtitle\jobtitle} \end{adjustbox}} \medskip } \newcommand{\makecontact}{% \begin{tikzpicture}[ampersand replacement=\&] \node [rectangle, fill=sidebarbackground, anchor=north, inner ysep=10pt, inner xsep=0pt, minimum width=\textwidth, minimum height=1.5cm] (contact) at ($(current page.north)-(0cm,6.5cm)$) {% \begin{tabularx}{\textwidth}{CCC}% \ifthenelse{\equal{\location}{}}{}{\locicon\ \location } & \ifthenelse{\equal{\phone}{}}{}{\phoneicon\ \phone } & \ifthenelse{\equal{\mail}{}}{}{\mailicon\ \href{mailto:\mail}{\mail} } \\ \end{tabularx} }; \draw[line width=1pt, draw=headercolor] ($(contact.south west)$) -- ($(contact.south east)$); \end{tikzpicture} \vspace{2\bigskipamount} } % Margins \RequirePackage[left=1.5cm, right=1.5cm, top=1.5cm, bottom=1.5cm, footskip=0.5cm, headheight=0.5cm]{geometry}