v4.9.2
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
- 💄 chore: modify homepage field in package.json f8fd518 @jaywcjlove
- 💄 chore: modify theme editor. c9766c9 @jaywcjlove
- 🐞 fix(codemirror-themes): Rename
dark
->theme
api. 8c4f9ee @jaywcjlove - 🌍 website: fix type error. 566dcfb @jaywcjlove
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' },
],
});