Skip to content

Commit

Permalink
fix: background-color for a dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed Sep 15, 2021
1 parent 1cc108b commit 397c1e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/swr-devtools-panel/src/components/CacheData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const AsyncReactJson = ({ data }: Props) => {
src={data}
theme={
matchMedia("(prefers-color-scheme: dark)").matches
? "monokai"
? "railscasts"
: "rjv-default"
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const GlobalStyle = createGlobalStyle`
@media (prefers-color-scheme: dark) {
--swr-devtools-text-color: #FFF;
--swr-devtools-bg-color: rgb(39, 40, 34);
--swr-devtools-bg-color: #292a2d;
--swr-devtools-hover-bg-color: #6d6a66;
--swr-devtools-border-color: #555454;
--swr-devtools-selected-bg-color: #524f4d;
Expand Down

1 comment on commit 397c1e4

@vercel
Copy link

@vercel vercel bot commented on 397c1e4 Sep 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.