@uiw/codemirror-themes 4.21.19 → 4.21.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ const myTheme = createTheme({
|
|
|
29
29
|
selection: '#036dd626',
|
|
30
30
|
selectionMatch: '#036dd626',
|
|
31
31
|
lineHighlight: '#8a91991a',
|
|
32
|
+
gutterBorder: '1px solid #ffffff10',
|
|
32
33
|
gutterBackground: '#fff',
|
|
33
34
|
gutterForeground: '#8a919966',
|
|
34
35
|
},
|
|
@@ -292,19 +293,17 @@ export interface CreateThemeOptions {
|
|
|
292
293
|
* Settings to customize the look of the editor, like background, gutter, selection and others.
|
|
293
294
|
*/
|
|
294
295
|
settings: Settings;
|
|
295
|
-
/**
|
|
296
|
-
* Syntax highlighting styles.
|
|
297
|
-
*/
|
|
296
|
+
/** Syntax highlighting styles. */
|
|
298
297
|
styles: TagStyle[];
|
|
299
298
|
}
|
|
300
|
-
|
|
299
|
+
type Theme = 'light' | 'dark';
|
|
301
300
|
export interface Settings {
|
|
302
301
|
/** Editor background color. */
|
|
303
|
-
background
|
|
302
|
+
background?: string;
|
|
304
303
|
/** Editor background image. */
|
|
305
304
|
backgroundImage?: string;
|
|
306
305
|
/** Default text color. */
|
|
307
|
-
foreground
|
|
306
|
+
foreground?: string;
|
|
308
307
|
/** Caret color. */
|
|
309
308
|
caret?: string;
|
|
310
309
|
/** Selection background. */
|
|
@@ -324,7 +323,7 @@ export interface Settings {
|
|
|
324
323
|
/** set editor font */
|
|
325
324
|
fontFamily?: string;
|
|
326
325
|
}
|
|
327
|
-
declare const createTheme: ({
|
|
326
|
+
export declare const createTheme: ({ theme, settings, styles }: CreateThemeOptions) => Extension;
|
|
328
327
|
export default createTheme;
|
|
329
328
|
```
|
|
330
329
|
|
package/package.json
CHANGED