% ================= % % == ADMONITIONS == % % ================= % % ------------------------- % % -- ICONS & ENV. COLORS -- % % ------------------------- % \ExplSyntaxOn %%% % We use two ''prop'' variables to associate each \env to its icon % and color. %%% \prop_new:N \g__tutodoc_focus_color_prop \prop_new:N \g__tutodoc_focus_icon_prop \prop_set_from_keyval:Nn \g__tutodoc_focus_color_prop { note = DarkGray, tip = DarkGray, imp = DarkGray, caut = DarkGray, warn = DarkGray, } \prop_set_from_keyval:Nn \g__tutodoc_focus_icon_prop { note = \faInfoCircle, tip = \faLightbulb, imp = \faHighlighter, caut = \faBiohazard, warn = \faSkullCrossbones, } \ExplSyntaxOff % ------------------ % % -- EXTRA COLORS -- % % ------------------ % \NewExpandableDocumentCommand{\tutodoc@build@title@color}{m}{% white% } \NewExpandableDocumentCommand{\tutodoc@build@upper@color}{m}{% \tdocdarkcolor[40]{Gray}% } \NewExpandableDocumentCommand{\tutodoc@build@back@color}{m}{% \tdoclightcolor[10]{Gray}% } \NewExpandableDocumentCommand{\tutodoc@build@frame@color}{m}{% Gray!75!black!45% } \colorlet{tutodoc@admonition@shadow@color}{Gray!15} % ----------------------- % % -- VERTICAL SPACINGS -- % % ----------------------- % \newcommand{\tutodoc@admonition@space@above}{\medskipamount} \newcommand{\tutodoc@admonition@space@below}{\medskipamount} % ========================= % % == LISTINGS - AGNOSTIC == % % ========================= % % ----------------- % % -- INLINE CODE -- % % ----------------- % \newcommand{\tutodoc@code@style}{friendly_grayscale} \colorlet{tutodoc@code@back@color}{gray!5} \colorlet{tutodoc@code@text@color}{black} % -------------------------------- % % -- FRAMED LISTING (tcolorbox) -- % % -------------------------------- % \colorlet{tutodoc@code@frame@color}{darkgray} \newcommand{\tutodoc@code@left@len}{3pt} \newcommand{\tutodoc@code@right@len}{3pt} \newcommand{\tutodoc@code@top@len}{1.5pt} \newcommand{\tutodoc@code@bottom@len}{1.5pt} \newcommand{\tutodoc@code@arc@len}{2pt} \newcommand{\tutodoc@code@left@rule@len}{1pt} \newcommand{\tutodoc@code@right@rule@len}{1pt} \newcommand{\tutodoc@code@top@rule@len}{1pt} \newcommand{\tutodoc@code@bottom@rule@len}{1pt} \colorlet{tutodoc@code@shadow@color}{Gray!25} \newcommand{\tutodoc@code@shadow@xshift@len}{.75mm} \newcommand{\tutodoc@code@shadow@yshift@len}{-.75mm} \newcommand{\tutodoc@code@shadow@offset@len}{0mm} \colorlet{tutodoc@code@segment@color}{gray} % ====================== % % == LISTINGS - LATEX == % % ====================== % % ---------------- % % -- LEXER USED -- % % ---------------- % \newcommand{\tutodoc@latex@lexer}{latex} % ----------------- % % -- INLINE CODE -- % % ----------------- % \newcommand{\tutodoc@latex@style}{friendly_grayscale} \colorlet{tutodoc@latex@back@color}{gray!5} \colorlet{tutodoc@latex@text@color}{black} % -------------------------------- % % -- FRAMED LISTING (tcolorbox) -- % % -------------------------------- % \colorlet{tutodoc@latex@frame@color}{darkgray} \newcommand{\tutodoc@latex@left@len}{3pt} \newcommand{\tutodoc@latex@right@len}{3pt} \newcommand{\tutodoc@latex@top@len}{1.5pt} \newcommand{\tutodoc@latex@bottom@len}{1.5pt} \newcommand{\tutodoc@latex@arc@len}{2pt} \newcommand{\tutodoc@latex@left@rule@len}{1pt} \newcommand{\tutodoc@latex@right@rule@len}{1pt} \newcommand{\tutodoc@latex@top@rule@len}{1pt} \newcommand{\tutodoc@latex@bottom@rule@len}{1pt} \colorlet{tutodoc@latex@shadow@color}{Gray!25} \newcommand{\tutodoc@latex@shadow@xshift@len}{.75mm} \newcommand{\tutodoc@latex@shadow@yshift@len}{-.75mm} \newcommand{\tutodoc@latex@shadow@offset@len}{0mm} \colorlet{tutodoc@latex@segment@color}{gray} % ========================== % % == TEXT AND PAGE COLORS == % % ========================== % \colorlet{tutodoc@page@color}{white} \colorlet{tutodoc@text@color}{black} % ================= % % == LINKS COLOR == % % ================= % \definecolor{tutodoc@link@color}{named}{DimGray} % ============== % % == SHOWCASE == % % ============== % \NewExpandableDocumentCommand{\tutodoc@showcase@rule@color}{}{% black% } \NewExpandableDocumentCommand{\tutodoc@showcase@stripe@color}{}{% darkgray% } \NewExpandableDocumentCommand{\tutodoc@showcase@text@color}{}{% black% } \NewExpandableDocumentCommand{\tutodoc@showcase@build@rule@color}{m}{% black% } \NewExpandableDocumentCommand{\tutodoc@showcase@build@back@color}{m}{% gray!10% } % ======================= % % == VERSION & CHANGES == % % ======================= % % -------------------- % % -- DATE & VERSION -- % % -------------------- % \NewExpandableDocumentCommand{\tutodoc@changes@when@color}{}{% gray% } % --------------------------- % % -- ENVS FOR CHANGES MADE -- % % --------------------------- % \newcommand{\tutodoc@changes@start@project@icon}{\faAnchor} \ExplSyntaxOn \prop_new:N \g__tutodoc_topic_change_prop \prop_set_from_keyval:Nn \g__tutodoc_topic_change_prop { break = \faCodeBranch, fix = \faWrench, new = \faGem, prob = \faFire*, tech = \faFlask, update = \reflectbox{\faHistory}, todo = \faCompass[regular], } \ExplSyntaxOff