From 8287d3a21638125cd5abe275a0e41cb3024b0c82 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Wed, 3 Jun 2026 15:43:53 +0530 Subject: [PATCH] fix(voice): scope dark: variants away from inverse-theme call window --- tailwind.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tailwind.config.js b/tailwind.config.js index cc2aebb63..df207d1ef 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -20,7 +20,10 @@ const defaultSansFonts = [ ]; const tailwindConfig = { - darkMode: 'class', + // `dark:` applies under any `.dark` ancestor, but a nested `.light` boundary + // opts a subtree back out (so descendant `dark:` utilities don't leak into the + // call window when it renders in the inverse/light theme under `body.dark`). + darkMode: ['variant', '&:where(.dark, .dark *):not(:where(.light, .light *))'], content: [ './enterprise/app/views/**/*.erb', './app/javascript/widget/**/*.vue',