MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / lightTheme

Function lightTheme

app/utilities/codeMirrorTheme.ts:147–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147export function lightTheme(): Extension {
148 const chalky = "#e5c07b",
149 coral = "#e06c75",
150 cyan = "#56b6c2",
151 invalid = "#ffffff",
152 ivory = "#abb2bf",
153 stone = "#7d8799",
154 malibu = "#61afef",
155 sage = "#98c379",
156 whiskey = "#d19a66",
157 violet = "#c678dd",
158 darkBackground = "#21252b",
159 highlightBackground = "#D0D0D0",
160 background = "rgb(248,250,252)",
161 tooltipBackground = "#353a42",
162 selection = "#D0D0D0",
163 cursor = "#528bff";
164
165 const jsonHeroEditorTheme = EditorView.theme(
166 {
167 "&": {
168 color: ivory,
169 backgroundColor: background,
170 },
171
172 ".cm-content": {
173 caretColor: cursor,
174 fontFamily: "MonoLisa, monospace",
175 fontSize: "14px",
176 },
177
178 ".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
179 "&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":
180 { backgroundColor: selection },
181
182 ".cm-panels": { backgroundColor: darkBackground, color: ivory },
183 ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
184 ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
185
186 ".cm-searchMatch": {
187 backgroundColor: "#72a1ff59",
188 outline: "1px solid #457dff",
189 },
190 ".cm-searchMatch.cm-searchMatch-selected": {
191 backgroundColor: "#6199ff2f",
192 },
193
194 ".cm-activeLine": { backgroundColor: highlightBackground },
195 ".cm-selectionMatch": { backgroundColor: "#aafe661a" },
196
197 "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
198 backgroundColor: "#bad0f847",
199 outline: "1px solid #515a6b",
200 },
201
202 ".cm-gutters": {
203 backgroundColor: background,
204 color: stone,

Callers 3

JsonPreviewFunction · 0.90
CodeViewerFunction · 0.90
CodeEditorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected