@uiw/codemirror-themes
Advanced tools
Comparing version 4.21.25 to 4.22.0
import { Extension } from '@codemirror/state'; | ||
import { TagStyle } from '@codemirror/language'; | ||
import { StyleSpec } from 'style-mod'; | ||
export interface CreateThemeOptions { | ||
@@ -41,4 +42,6 @@ /** | ||
fontFamily?: string; | ||
/** set editor font size */ | ||
fontSize?: StyleSpec['fontSize']; | ||
} | ||
export declare const createTheme: ({ theme, settings, styles }: CreateThemeOptions) => Extension; | ||
export default createTheme; |
@@ -28,2 +28,5 @@ "use strict"; | ||
} | ||
if (settings.fontSize) { | ||
baseStyle.fontSize = settings.fontSize; | ||
} | ||
if (settings.background || settings.foreground) { | ||
@@ -30,0 +33,0 @@ themeOptions['&'] = baseStyle; |
import { Extension } from '@codemirror/state'; | ||
import { TagStyle } from '@codemirror/language'; | ||
import { StyleSpec } from 'style-mod'; | ||
export interface CreateThemeOptions { | ||
@@ -41,4 +42,6 @@ /** | ||
fontFamily?: string; | ||
/** set editor font size */ | ||
fontSize?: StyleSpec['fontSize']; | ||
} | ||
export declare const createTheme: ({ theme, settings, styles }: CreateThemeOptions) => Extension; | ||
export default createTheme; |
@@ -22,2 +22,5 @@ import { EditorView } from '@codemirror/view'; | ||
} | ||
if (settings.fontSize) { | ||
baseStyle.fontSize = settings.fontSize; | ||
} | ||
if (settings.background || settings.foreground) { | ||
@@ -24,0 +27,0 @@ themeOptions['&'] = baseStyle; |
{ | ||
"name": "@uiw/codemirror-themes", | ||
"version": "4.21.25", | ||
"version": "4.22.0", | ||
"description": "Themes for CodeMirror.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://uiwjs.github.io/react-codemirror/#/theme/doc", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26453
369