From d185a68d941fc44e03c2e854e688aecb23dbf89f Mon Sep 17 00:00:00 2001 From: Tobias Wylega Date: Mon, 12 Aug 2024 22:13:57 +0200 Subject: [PATCH] color toggle --- Template/customFunctions.typ | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Template/customFunctions.typ b/Template/customFunctions.typ index 352647f..ea50f5c 100644 --- a/Template/customFunctions.typ +++ b/Template/customFunctions.typ @@ -8,6 +8,17 @@ #import "@preview/hydra:0.3.0": hydra #import "@preview/codly:1.0.0": * +#let colorize = true + +#let useCaseColor = rgb("E28862") +#let useCaseColorLight = rgb("EEC0AB") +#let requirementColor = silver + +#if not colorize { + useCaseColor = rgb("AAAAAA") + useCaseColorLight = rgb("CCCCCC") +} + #let sidePadding = 1em #let topBotPadding = 3em @@ -61,7 +72,7 @@ #table( columns: (0.4fr, 1fr), - fill: (x, y) => if calc.even(x) { rgb("E28862") } else { rgb("EEC0AB") }, + fill: (x, y) => if calc.even(x) { useCaseColor } else { useCaseColorLight }, stroke: (x: none, y: 2.5pt + rgb("FFFF")),