Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

511 B
Raw Blame
import { githubDarkInit, githubLight } from '@uiw/codemirror-theme-github';

const githubDark = githubDarkInit({
  settings: { background: 'transparent', gutterBackground: 'transparent' },
});

const codeMirror = (resolvedTheme: string) =>
  resolvedTheme === 'dark' ? githubDark : githubLight;

const jsonView = (resolvedTheme: string) =>
  resolvedTheme === 'dark' ? 'bright' : 'rjv-default';

export const syntaxTheme = {
  codeMirror,
  jsonView,
  shiki: { light: 'github-light', dark: 'github-dark' },
};