use-monaco
Version:
[](https://npm.im/use-monaco)
20 lines (19 loc) • 587 B
TypeScript
import type * as monaco from 'monaco-editor';
export interface IVSCodeTheme {
$schema: 'vscode://schemas/color-theme';
type: 'dark' | 'light';
colors: {
[name: string]: string;
};
tokenColors: {
name?: string;
scope: string[] | string;
settings: {
foreground?: string;
background?: string;
fontStyle?: string;
};
}[];
}
export declare type IMonacoThemeRule = monaco.editor.ITokenThemeRule[];
export declare function convertTheme(theme: IVSCodeTheme): monaco.editor.IStandaloneThemeData;