Skip to content

v4.9.2

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Jun 03:56
· 469 commits to master since this release

Documentation v4.9.2: https://raw.githack.com/uiwjs/react-codemirror/8a2422f/index.html
Comparing Changes: v4.9.1...v4.9.2

npm i @uiw/react-codemirror@4.9.2
import { createTheme } from '@uiw/codemirror-themes';
import { tags as t } from '@lezer/highlight';

const myTheme = createTheme({
-  dark: 'light',
+  theme: 'light',
  settings: {
    background: '#ffffff',
    foreground: '#75baff',
    caret: '#5d00ff',
    selection: '#036dd626',
    lineHighlight: '#8a91991a',
    gutterBackground: '#fff',
    gutterForeground: '#8a919966',
  },
  styles: [
    { tag: t.comment, color: '#787b8099' },
    { tag: t.variableName, color: '#0080ff' },
    { tag: t.attributeName, color: '#5c6166' },
  ],
});