Skip to content

Commit

Permalink
color toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
MrToWy committed Aug 12, 2024
1 parent 2e2c1c4 commit d185a68
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Template/customFunctions.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")),


Expand Down

0 comments on commit d185a68

Please sign in to comment.