From 2886b6921257daa54fca191c1c554f8830bf5bf0 Mon Sep 17 00:00:00 2001 From: Arturo Silva Date: Tue, 9 Apr 2024 15:47:22 -0400 Subject: [PATCH] fix: remove global styles from wpds-tokens --- ui/tokens/scripts/build.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/tokens/scripts/build.mjs b/ui/tokens/scripts/build.mjs index 2aab146af..e8a1f64cd 100644 --- a/ui/tokens/scripts/build.mjs +++ b/ui/tokens/scripts/build.mjs @@ -3,6 +3,7 @@ import { renderToString } from "react-dom/server.js"; import { getCssText, darkTheme } from "@washingtonpost/wpds-theme"; import fs from "fs"; +// Needed in order for the react render (with stitches) to generate the dark color tokens // eslint-disable-next-line testing-library/render-result-naming-convention const css = renderToString( React.createElement("style", {