-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from Ajay9330/dark-jsoneditor
DarkMode support for JSONEditor
- Loading branch information
Showing
2 changed files
with
103 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* dark_mode_code for code view */ | ||
.dark div.jsoneditor { | ||
@apply border-zinc-600 border-[2px]; | ||
|
||
} | ||
|
||
.dark div.jsoneditor-menu { | ||
@apply bg-zinc-950 border-[#ffffff33]; | ||
} | ||
|
||
.dark .ace-jsoneditor .ace_scroller { | ||
@apply bg-zinc-900; | ||
} | ||
|
||
.dark .ace-jsoneditor .ace_marker-layer .ace_active-line { | ||
@apply bg-zinc-700; | ||
} | ||
|
||
.dark .ace_gutter-cell { | ||
@apply text-white; | ||
} | ||
|
||
.dark .ace-jsoneditor .ace_gutter-active-line { | ||
@apply bg-zinc-950 bg-opacity-80; | ||
} | ||
|
||
.dark .ace-jsoneditor .ace_marker-layer .ace_selection { | ||
@apply bg-green-400 bg-opacity-30 | ||
} | ||
|
||
.dark .ace_mobile-menu { | ||
@apply bg-blue-300; | ||
} | ||
|
||
.dark div.ace_gutter { | ||
@apply bg-zinc-800; | ||
} | ||
|
||
.dark .ace_variable { | ||
@apply text-white; | ||
} | ||
|
||
.dark .ace_constant.ace_numeric { | ||
@apply text-blue-400; | ||
} | ||
|
||
.dark span.ace_string.ace_string { | ||
@apply text-green-500; | ||
} | ||
|
||
.dark .jsoneditor-statusbar { | ||
@apply bg-zinc-800 border-zinc-600; | ||
} | ||
|
||
/* darkmode_code for view(tree) mode start here*/ | ||
.dark div.jsoneditor-tree, | ||
.dark div.jsoneditor textarea.jsoneditor-text { | ||
@apply bg-zinc-900; | ||
} | ||
|
||
.dark .jsoneditor-navigation-bar { | ||
@apply bg-zinc-800 border-zinc-700 text-white; | ||
|
||
} | ||
|
||
.dark div.jsoneditor-field, | ||
.dark div.jsoneditor-value { | ||
@apply text-white; | ||
} | ||
|
||
.dark div.jsoneditor-frame, | ||
.dark .jsoneditor-search input { | ||
@apply bg-zinc-800 text-zinc-300; | ||
} | ||
|
||
.dark div.jsoneditor-tree div.jsoneditor-date { | ||
@apply bg-zinc-300 text-zinc-900; | ||
} | ||
|
||
.dark a.jsoneditor-value.jsoneditor-url { | ||
@apply text-green-200; | ||
} | ||
|
||
.dark div.jsoneditor td.jsoneditor-separator { | ||
@apply text-[#47f900]; | ||
} | ||
|
||
.dark div.jsoneditor-value.jsoneditor-string { | ||
@apply text-green-500; | ||
} | ||
|
||
.dark div.jsoneditor-value.jsoneditor-number { | ||
@apply text-blue-500; | ||
} | ||
|
||
.dark div.jsoneditor-value.jsoneditor-null { | ||
@apply text-yellow-900; | ||
} | ||
|
||
.dark div.jsoneditor-value.jsoneditor-invalid { | ||
@apply text-red-800; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters