UNPKG

use-monaco

Version:

[![npm](https://img.shields.io/npm/v/use-monaco)](https://npm.im/use-monaco)

20 lines (19 loc) 587 B
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;