From 11da4630ee2ff0304f69cb8a896ec9e2e3889a19 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Thu, 16 Apr 2026 18:51:47 +0100 Subject: [PATCH 1/2] Improve contrast between optional argument text and background --- cheatsheets.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheatsheets.tex b/cheatsheets.tex index 776b5c4..f5aedc4 100644 --- a/cheatsheets.tex +++ b/cheatsheets.tex @@ -149,7 +149,7 @@ } -\newcommand{\optional}[1]{\textcolor{gray}{#1}} +\newcommand{\optional}[1]{\textcolor[RGB]{78, 78, 78}{#1}} \newcommand{\mandatory}[1]{\textbf{#1}} \newcommand{\parameter}[2]{% \expandafter\ifstrequal\expandafter{#1}{optional}% From d2375b2e324e73509e4fd7c4891cbc4c3f5d7c18 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Thu, 30 Apr 2026 15:25:53 +0100 Subject: [PATCH 2/2] Use 89, 89, 89 for lighter text colour --- cheatsheets.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cheatsheets.tex b/cheatsheets.tex index f5aedc4..e346ba7 100644 --- a/cheatsheets.tex +++ b/cheatsheets.tex @@ -149,7 +149,8 @@ } -\newcommand{\optional}[1]{\textcolor[RGB]{78, 78, 78}{#1}} +# 89, 89, 89 is the lightest colour that still gives a good contrast ratio with the white background +\newcommand{\optional}[1]{\textcolor[RGB]{89, 89, 89}{#1}} \newcommand{\mandatory}[1]{\textbf{#1}} \newcommand{\parameter}[2]{% \expandafter\ifstrequal\expandafter{#1}{optional}%