Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
<body
className={cn(
"min-h-screen bg-background font-sans antialiased",
fontSans.variable
fontSans.variable ?? ""
)}
>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
Expand Down
1 change: 0 additions & 1 deletion store/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { EditorView } from "codemirror"
import { JSONMode } from "codemirror-json-schema"
import json5 from "json5"
import { UseBoundStore, create } from "zustand"
import {
Expand Down
33 changes: 28 additions & 5 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,33 @@
@apply bg-background text-foreground;
font-feature-settings: "rlig" 1, "calt" 1;
}
code {
filter: brightness(0.85);
}
.dark code {
filter: brightness(var(--background));
code, pre {
filter: brightness(0.8);
}

}


.cm-lintRange-error {
text-decoration: underline wavy red;
}
.cm6-json-schema-hover,
.cm-editor .cm-diagnostic-error {
font-size: 0.9rem;
padding: 0.5rem;
}
.cm6-json-schema-hover--description {
padding-bottom: 0.5rem;
margin-bottom: .5rem;
max-width: 600px;
border-bottom: 1px solid #888;
}

.cm6-json-schema-hover--code-wrapper {
font-size: .9rem;
font-family: 'Courier New', Courier, monospace;
padding: 0.3rem;
background-color: white;
color: black;
display: inline-block;
}