From bddd85e9cf046660b6990e3e501d0bc6404c2048 Mon Sep 17 00:00:00 2001 From: Roy Anger Date: Tue, 31 Oct 2023 08:49:59 -0400 Subject: [PATCH] Added style for prefers-color-scheme to interstitial head (#1935) * Added style for prefers-color-scheme to interstitial head This checks if the user prefers dark color schemes, and then sets the body to black. This could reduce 'flashes of white'. * feat(backend): Added prefers-color-scheme to interstitial (cherry picked from commit 8b6b094b9c7d09eeae90f8bdfac44d53513aa63d) --- .changeset/flat-pots-hear.md | 5 +++++ packages/backend/src/tokens/interstitial.ts | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 .changeset/flat-pots-hear.md diff --git a/.changeset/flat-pots-hear.md b/.changeset/flat-pots-hear.md new file mode 100644 index 0000000000..0fea9b13b1 --- /dev/null +++ b/.changeset/flat-pots-hear.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': minor +--- + +Added prefers-color-scheme to interstitial diff --git a/packages/backend/src/tokens/interstitial.ts b/packages/backend/src/tokens/interstitial.ts index 5d0e1b93d8..31db9e6b27 100644 --- a/packages/backend/src/tokens/interstitial.ts +++ b/packages/backend/src/tokens/interstitial.ts @@ -58,6 +58,13 @@ export function loadInterstitialFromLocal(options: Omit +