Skip to content

Commit a9fb948

Browse files
committed
feat(themes/prettylights): opt in to color-scheme property
Adopt theme colors based on the `color-scheme` property. Default is still the user's color scheme preference with the possibility to overwrite via the `color-scheme` property. https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
1 parent 5cf4f4a commit a9fb948

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/themes/prettylights.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
--prettylights-string-regexp: #116329;
2626
--prettylights-variable: #953800;
2727

28+
color-scheme: light dark;
2829
color: var(--prettylights-fg);
2930
background-color: var(--prettylights-bg);
3031
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",

0 commit comments

Comments
 (0)