Skip to content

Commit f339d71

Browse files
committed
Use :where() for easier Tailwind overrides
1 parent 3a870ed commit f339d71

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

src/components/toast-bar.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,21 @@ const exitAnimation = (factor: number) => `
1818
const fadeInAnimation = `0%{opacity:0;} 100%{opacity:1;}`;
1919
const fadeOutAnimation = `0%{opacity:1;} 100%{opacity:0;}`;
2020

21+
// Use :where() for zero specificity - allows Tailwind to override easily
2122
const ToastBarBase = styled('div')`
22-
display: flex;
23-
align-items: center;
24-
background: #fff;
25-
color: #363636;
26-
line-height: 1.3;
27-
will-change: transform;
28-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
29-
max-width: 350px;
30-
pointer-events: auto;
31-
padding: 8px 10px;
32-
border-radius: 8px;
23+
:where(&) {
24+
display: flex;
25+
align-items: center;
26+
background: #fff;
27+
color: #363636;
28+
line-height: 1.3;
29+
will-change: transform;
30+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
31+
max-width: 350px;
32+
pointer-events: auto;
33+
padding: 8px 10px;
34+
border-radius: 8px;
35+
}
3336
`;
3437

3538
const Message = styled('div')`

0 commit comments

Comments
 (0)