Skip to content

Commit 4621314

Browse files
committed
default color-scheme, I'm so smart
1 parent feb55b3 commit 4621314

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/style/core.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ const root = css`
3030
--rdg-row-selected-hover-background-color: light-dark(hsl(207deg 76% 88%), hsl(207deg 76% 38%));
3131
--rdg-checkbox-focus-color: hsl(207deg 100% 69%);
3232
33+
/* We do not use the "light dark" value here,
34+
* otherwise it would not respect setting color-scheme on a parent element */
35+
color-scheme: light-dark(light, dark);
36+
3337
&.rdg-dark {
3438
color-scheme: dark;
3539
}

0 commit comments

Comments
 (0)