From 7255527fde0f83eebc856e5c0f4886345c5bfe1e Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Mon, 20 Apr 2026 13:08:24 -0500 Subject: [PATCH 1/9] feat(ui): replace injectStyles() with React 19 style precedence hoisting Replace module-level injectStyles() side effect with React 19's + ); +} diff --git a/packages/ui/src/styles/global.css b/packages/ui/src/styles/global.css index 7cd3d0eb..a3e99a06 100644 --- a/packages/ui/src/styles/global.css +++ b/packages/ui/src/styles/global.css @@ -2,13 +2,15 @@ * Tailwind v4 CSS Layer Strategy * ============================== * All SDK styles are wrapped in custom @layer directives (yv-sdk-*) so that - * when injected into a consumer's app, they sit below unlayered author styles - * in the CSS cascade. This prevents our SDK from overriding consumer CSS. + * they sit below unlayered author styles in the CSS cascade. This prevents + * our SDK from overriding consumer CSS. * * LAYER ORDER IS CRITICAL. We declare Tailwind v4's standard layer names - * (theme, base, components, utilities) BEFORE our yv-sdk-* layers. Because - * injectStyles() appends our