% -- COLORFUL HIGHLIGHTING OF CONTENT -- % \NewExpandableDocumentCommand{\tutodoc@build@title@color}{m}{% white% } \NewExpandableDocumentCommand{\tutodoc@build@upper@color}{m}{% \tdocdarkcolor{#1}% } \NewExpandableDocumentCommand{\tutodoc@build@lower@color}{m}{% \tdocdarkcolor{#1}% } \NewExpandableDocumentCommand{\tutodoc@build@back@color}{m}{% \tdoclightcolor{#1}% } \NewExpandableDocumentCommand{\tutodoc@build@frame@color}{m}{% #1!75!black!45% } \colorlet{tutodoc@admonition@shadow@color}{black!30} \ExplSyntaxOn %%% % We use two ''prop'' variables to factorize the code just after. %%% \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 = cyan, tip = ForestGreen, imp = orange, caut = violet, warn = red, } \prop_set_from_keyval:Nn \g__tutodoc_focus_icon_prop { note = \faInfoCircle, tip = \faLightbulb, imp = \faHighlighter, caut = \faBiohazard, warn = \faSkullCrossbones, } \ExplSyntaxOff