tinte
Version:
Beautiful editor themes with the best DX - install themes instantly to VS Code, Cursor, and Zed
49 lines (46 loc) • 1.44 kB
text/typescript
interface TinteTheme {
light: Record<string, string>;
dark: Record<string, string>;
}
interface EditorInstallOptions {
autoClose?: boolean;
variant?: "light" | "dark";
timeout?: number;
editor?: "code" | "cursor" | "zed";
}
declare class TinteCLI {
private readonly NETLIFY_ENDPOINT;
private readonly TMP_DIR;
constructor();
/**
* Install theme from Tinte theme data
*/
installTheme(tinteTheme: TinteTheme, themeName: string, options?: EditorInstallOptions, vscodeOverrides?: Record<string, any>): Promise<string>;
/**
* Install theme to Zed editor
*/
private installToZed;
/**
* Install theme from URL (theme slug or full theme data)
*/
installFromUrl(themeUrl: string, options?: EditorInstallOptions): Promise<string>;
/**
* Install theme from local JSON file
*/
installFromFile(filePath: string, themeName?: string, options?: EditorInstallOptions): Promise<string>;
/**
* Quick install with theme shorthand
*/
quick(themeInput: string, options?: EditorInstallOptions): Promise<string>;
/**
* List installed Tinte themes in editor
*/
listInstalled(editor?: "code" | "cursor" | "zed"): string[];
/**
* Clean up temporary theme files
*/
cleanup(): void;
private generateVSIX;
private installToEditor;
}
export { type EditorInstallOptions, TinteCLI, type TinteTheme };