Skip to content

Commit 8aae4fd

Browse files
fix(ui): Shadcn ring and backdrop colors (#7495)
1 parent db6b18e commit 8aae4fd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/spicy-terms-learn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/ui': patch
3+
---
4+
5+
Update shadcn theme ring and modalBackdrop variables to match the opacity defined in shadcn components.

packages/ui/src/themes/shadcn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ export const shadcn = createTheme({
99
colorForeground: 'var(--card-foreground)',
1010
colorInput: 'var(--input)',
1111
colorInputForeground: 'var(--card-foreground)',
12-
colorModalBackdrop: 'var(--color-black)',
12+
colorModalBackdrop: 'color-mix(in srgb, var(--color-black), transparent 50%)',
1313
colorMuted: 'var(--muted)',
1414
colorMutedForeground: 'var(--muted-foreground)',
1515
colorNeutral: 'var(--foreground)',
1616
colorPrimary: 'var(--primary)',
1717
colorPrimaryForeground: 'var(--primary-foreground)',
18-
colorRing: 'var(--ring)',
18+
colorRing: 'color-mix(in srgb, var(--ring), transparent 50%)',
1919
fontWeight: {
2020
normal: 'var(--font-weight-normal)',
2121
medium: 'var(--font-weight-medium)',

0 commit comments

Comments
 (0)