themes.js exports four extensions: - editorLightTheme / editorDarkTheme: EditorView.theme() variants keyed to the --cm-* CSS variables defined in tokens.css (light) and its prefers-color-scheme: dark block. - editorHighlightStyle: HighlightStyle bound to Lezer tags (comment, string, number, keyword, variableName). - editorHighlighting: syntaxHighlighting(editorHighlightStyle) ready to drop into the EditorState extensions array. @lezer/highlight comes in transitively via @codemirror/language; no new package.json dependency needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| editor-entry.js | ||
| package-lock.json | ||
| package.json | ||
| srccfg-mode.js | ||
| themes.js | ||