Skip to content

Commit c40407a

Browse files
maria-rcksvoltcrash
authored andcommitted
fix(web): keep light diff emphasis within readable opacity
1 parent c03e759 commit c40407a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/lib/diffRendering.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export const DIFF_SURFACE_THEME_UNSAFE_CSS = `
302302
/* Pierre resolves emphasis on the host, before the diff's overrides can inherit. */
303303
/* Light emphasis stays above t3-light's readable syntax luminance floor. */
304304
--diffs-bg-addition-emphasis: light-dark(
305-
rgb(from var(--diffs-addition-base) r g b / calc(15% + var(--appearance-contrast-boost, 0%) / 50)),
305+
rgb(from var(--diffs-addition-base) r g b / 15%),
306306
rgb(from var(--diffs-addition-base) r g b / calc(20% + var(--appearance-contrast-boost, 0%) / 4))
307307
);
308308
@@ -320,7 +320,7 @@ export const DIFF_SURFACE_THEME_UNSAFE_CSS = `
320320
var(--diff-deletion)
321321
);
322322
--diffs-bg-deletion-emphasis: light-dark(
323-
rgb(from var(--diffs-deletion-base) r g b / calc(15% + var(--appearance-contrast-boost, 0%) / 50)),
323+
rgb(from var(--diffs-deletion-base) r g b / 15%),
324324
rgb(from var(--diffs-deletion-base) r g b / calc(20% + var(--appearance-contrast-boost, 0%) / 4))
325325
);
326326

0 commit comments

Comments
 (0)