From e515f174a437cfdca47d9bf561fbcce361ce0366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?= <71827178+bosiraphael@users.noreply.github.com> Date: Tue, 16 Jun 2026 14:12:49 +0200 Subject: [PATCH] Load twenty-ui global styles in twenty-front Storybook (#21665) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Loads `twenty-ui/style.css` in twenty-front's Storybook preview, matching the real app — `src/index.tsx` already imports it, but `.storybook/preview.tsx` only loaded the deprecated stylesheet, so Storybook rendered without twenty-ui's global `reset.scss` (`*{box-sizing:border-box}` + a native `button` reset) that the production app has. This isolates the resulting box-model/button-reset baseline shift ahead of the `twenty-ui-deprecated` removal PR. The Argos diff here is exactly that global shift (Storybook catching up to how the app already renders) and is expected — bulk-approve. Once this lands, the removal PR's Argos will show only genuine deprecated→twenty-ui component diffs instead of being buried under ~240 reset-driven diffs. Only the reset applies in this PR: twenty-ui's component CSS targets hashed module classes that don't exist in the deprecated-rendered Storybook, and `reset.scss` is the only global selector twenty-ui emits. Review in cubic --- packages/twenty-front/.storybook/preview.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/twenty-front/.storybook/preview.tsx b/packages/twenty-front/.storybook/preview.tsx index c9648d9fb3..6973556329 100644 --- a/packages/twenty-front/.storybook/preview.tsx +++ b/packages/twenty-front/.storybook/preview.tsx @@ -22,6 +22,7 @@ import 'react-loading-skeleton/dist/skeleton.css'; import 'twenty-ui-deprecated/style.css'; import 'twenty-ui-deprecated/theme-light.css'; import 'twenty-ui-deprecated/theme-dark.css'; +import 'twenty-ui/style.css'; import { ThemeProvider } from 'twenty-ui-deprecated/theme-constants'; // oxlint-disable-next-line no-restricted-imports import { messages as enMessages } from '../src/locales/generated/en';