From 538df0aa95f1a3b3ad3376b6a15676cb5b762058 Mon Sep 17 00:00:00 2001 From: cedounet <134267244+cedounet@users.noreply.github.com> Date: Mon, 7 Aug 2023 21:14:27 +0100 Subject: [PATCH] Align to hardcover book (#166) * Align sans-serif font to printed book - We now use Open Sans - Also have units in text mode, looks nicer in Sans serif mode at least See: https://github.com/hendricius/the-sourdough-framework/pull/158#event-9914405309 * Add colours definition from the printed book New colors taken from https://github.com/hendricius/the-sourdough-framework/pull/158#event-9914405309 --- book/sourdough.sty | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/book/sourdough.sty b/book/sourdough.sty index d28a390..306ef00 100644 --- a/book/sourdough.sty +++ b/book/sourdough.sty @@ -14,9 +14,16 @@ \renewcommand\theadfont{\bfseries} \definecolor{codeblue}{RGB}{69, 161, 248} -\definecolor{codegray}{RGB}{40, 40, 40} +\definecolor{codeblack}{RGB}{40, 40, 40} + +\definecolor{maingray}{HTML}{F8F8F8} + +\definecolor{hlocre}{HTML}{E5B874} +\definecolor{hlorange}{HTML}{EC7850} +\definecolor{hlyellow}{HTML}{FAE69E} + \usetikzlibrary{shapes,arrows} -\tikzstyle{decision} = [diamond, draw, fill=codegray, text=white, +\tikzstyle{decision} = [diamond, draw, fill=codeblack, text=white, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt] \tikzstyle{block} = [rectangle, draw, fill=codeblue, text=white, text width=5em, text centered, rounded corners, minimum height=4em] @@ -24,7 +31,8 @@ % Fonts for accessibility \ifdefined\isaccessible - \setmainfont{TeX Gyre Heros} % Helvetica clone + \setmainfont{Open Sans} + \AtBeginDocument{\sisetup{mode =text}} \fi % Kerning in footnotes