Skip to content

Instantly share code, notes, and snippets.

@metehus
Created February 19, 2022 18:48
Show Gist options
  • Save metehus/fdb352d76a39ae8affdc672e80b96416 to your computer and use it in GitHub Desktop.
Save metehus/fdb352d76a39ae8affdc672e80b96416 to your computer and use it in GitHub Desktop.
JSONVue extension theme
body {
white-space: pre-wrap;
word-break: break-word;
font-family: 'Jetbrains Mono', monospace;
}
.property {
font-weight: bold;
}
.type-null {
color: gray;
}
.type-boolean {
color: firebrick;
}
.type-number {
color: blue;
}
.type-string {
color: #c275d8;
}
.callback-function {
color: gray;
}
.collapser::after {
content: "-";
}
.collapsed>.collapser::after {
content: "+";
}
.ellipsis::after {
content: " … ";
}
.collapsible {
margin-left: 2em;
}
.collapsible .collapsible::before {
border-width: 0;
border-left: #d3d3d3 .1em dashed;
content: " ";
max-width: .1em;
position: absolute;
height: calc(100% - 3.4em);
left: .4em;
top: 1.8em;
}
.hoverable {
padding: .1em;
transition: background-color .2s ease-out 0s;
}
.hovered {
background-color: rgba(235, 238, 249, 1);
transition-delay: .2s;
}
.collapser {
position: absolute;
top: .1em;
left: -1.4em;
cursor: default;
user-select: none;
padding-right: .5em;
padding-left: .5em;
}
.selected {
outline-style: solid;
outline-width: .1em;
outline-style: dotted;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #282828;
color: lightgrey;
}
.hovered {
background-color: #424242;
}
.type-boolean {
color: #cc9764;
}
.type-number {
color: #c16b63;
}
.type-string {
color: #c275d8;
}
a {
color: #49a2ee;
}
.collapsible .collapsible::before {
border-color: #484848;
}
}
@metehus
Copy link
Author

metehus commented Feb 19, 2022

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment