Skip to content

Commit

Permalink
Merge pull request #412 from ijemmao/io/411-update-json-theme
Browse files Browse the repository at this point in the history
chore: change json theme to work on dark backgrounds
  • Loading branch information
ijemmao authored Nov 24, 2021
2 parents d6931e5 + 999886f commit 55e6989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/components/Demo/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const Demo = ({ searchWord, words }) => {
Response
</h3>
<JSONPretty
className="w-full self-center lg:w-auto jsonPretty bg-gray-800 rounded-md p-2"
className="jsonPretty w-full self-center lg:w-auto bg-gray-800 rounded-md p-2"
id="json-pretty"
data={responseBody}
/>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@
max-width: 95vw;
overflow: scroll;
font-size: 1em;
@apply text-white;
color: rgb(153, 218, 255);
}

.__json-key__ {
color: black;
color: rgb(184, 245, 209);
}
.__json-string__ {
color: rgb(0, 77, 15);
color: rgb(255, 255, 255);
}

.demo-inputs-container {
Expand Down

0 comments on commit 55e6989

Please sign in to comment.