Skip to content

Instantly share code, notes, and snippets.

@AlexJHayward
Created June 15, 2020 15:42
Show Gist options
  • Save AlexJHayward/abac907e278353480aadec9c5c415478 to your computer and use it in GitHub Desktop.
Save AlexJHayward/abac907e278353480aadec9c5c415478 to your computer and use it in GitHub Desktop.
A dark theme for the JSONView Chrome plugin using the Fira Code font
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');
body {
white-space: pre;
font-family: 'Fira Code', monospace;
color: white;
background: black;
}
.property {
color: orange;
font-weight: bold;
}
.type-null {
color: gray;
}
.type-boolean {
color: orangered;
}
.type-number {
color: lightblue;
}
.type-string {
color: lightgreen;
}
a {
color: dodgerBlue;
}
.callback-function {
color: gray;
}
.collapser:after {
content: "-";
}
.collapsed > .collapser:after {
content: "+";
}
.ellipsis:after {
content: " … ";
}
.collapsible {
margin-left: 2em;
}
.hoverable {
padding: 1px 2px 1px 2px;
border-radius: 3px;
}
.hovered {
background-color: rgba(255, 255, 255, .3);
}
.collapser {
padding-right: 6px;
padding-left: 6px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment