Skip to content

Commit

Permalink
Adding sensitivity to dark and light themes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpert committed Jul 18, 2023
1 parent 7181d21 commit 03e0599
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions docs/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,32 @@
@tailwind components;
@tailwind utilities;

.isso-postbox input, .isso-postbox textarea {
background-color: #111 !important;
border: #eee !important;
color: #ccc !important;
:root {
--color-bg-dark: #111;
--color-border-dark: #eee;
--color-text-dark: #ccc;

--color-bg-light: #fff;
--color-border-light: #ddd;
--color-text-light: #999;
}

@media (prefers-color-scheme: dark) {
.isso-postbox input, .isso-postbox textarea {
background-color: var(--color-bg-dark) !important;
border: var(--color-border-dark) !important;
color: var(--color-text-dark) !important;
}
}

@media (prefers-color-scheme: light) {
.isso-postbox input, .isso-postbox textarea {
background-color: var(--color-bg-light) !important;
border: var(--color-border-light) !important;
color: var(--color-text-light) !important;
}
}

.isso-postbox input[type=button] {
border-radius: 5px;
border-radius: 5px;
}

0 comments on commit 03e0599

Please sign in to comment.