Skip to content

Commit 2eb9d3b

Browse files
committed
Dark mode fixes
1 parent a61a0cc commit 2eb9d3b

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

packages/console/app/src/routes/index.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
@media (prefers-color-scheme: dark) {
3434
--color-background: hsl(0, 9%, 7%);
3535
--color-background-weak: hsl(0, 6%, 10%);
36+
--color-background-weak-hover: hsl(0, 6%, 15%);
3637
--color-background-strong: hsl(0, 15%, 94%);
3738
--color-background-strong-hover: hsl(0, 15%, 97%);
3839
--color-background-interactive: hsl(62, 100%, 90%);
@@ -405,7 +406,9 @@
405406
white-space: nowrap;
406407
vertical-align: middle;
407408

408-
409+
@media (prefers-color-scheme: dark) {
410+
color: var(--color-text-weak);
411+
}
409412

410413
@media (max-width: 35rem) {
411414
width: calc(100% - 40px) !important;
@@ -421,6 +424,11 @@
421424

422425
[data-slot="command"]:hover {
423426
background: var(--color-background-weak-hover);
427+
428+
@media (prefers-color-scheme: dark) {
429+
color: var(--color-text-weak);
430+
background: var(--color-background-weak-hover);
431+
}
424432
}
425433
}
426434
}
@@ -775,6 +783,11 @@
775783
/* Tailwind-style ring */
776784
box-shadow: 0 0 0 3px var(--color-background-interactive);
777785
/* mimics "ring-2 ring-blue-600/50" */
786+
787+
@media (prefers-color-scheme: dark) {
788+
box-shadow: none;
789+
border: 1px solid var(--color-background-interactive)
790+
}
778791
}
779792

780793
button {

0 commit comments

Comments
 (0)