diff --git a/app/layout.tsx b/app/layout.tsx index 6ff13ee..7b4791b 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -38,7 +38,7 @@ export default function RootLayout({ children }: RootLayoutProps) { diff --git a/store/main.ts b/store/main.ts index c3a7b03..7c334d9 100644 --- a/store/main.ts +++ b/store/main.ts @@ -1,5 +1,4 @@ import { EditorView } from "codemirror" -import { JSONMode } from "codemirror-json-schema" import json5 from "json5" import { UseBoundStore, create } from "zustand" import { diff --git a/styles/globals.css b/styles/globals.css index 4726f56..3f6e49a 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -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; }