From 7dd7744edf0d9219c67b6624251e1a4506d7e5c7 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 28 Jun 2022 09:52:49 -0500 Subject: [PATCH] Add colorText utility function --- src/data/common.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data/common.tsx b/src/data/common.tsx index 45f6321..9630d9f 100644 --- a/src/data/common.tsx +++ b/src/data/common.tsx @@ -248,3 +248,7 @@ export function createCollapsibleModifierSections( }); return [jsxFunc, collapsed]; } + +export function colorText(textToColor: string, color = "var(--accent2)"): string { + return `${textToColor}`; +}