pinecone-cli
Version:
Lovely VSCode theme builder
164 lines (163 loc) • 4.65 kB
TypeScript
export type Options = {
/**
* Path to pinecone theme file.
* Append "-color-theme" to your source file for intellisense.
* @default './themes/_pinecone-color-theme.json'
*/
source: string;
/**
* Path to pinecone theme file.
* Append "-color-theme" to your source file for intellisense.
* @default './themes/_pinecone-color-theme.json'
*/
output: string;
/**
* Variable prefix.
* @default '$'
*/
prefix: string;
/**
* Rebuild themes on change.
* @default false
*/
watch: boolean;
/**
* Purge non-pinecone themes and sync package.json contributes
* section.
* @default false
*/
tidy?: boolean;
/**
* Generate additional variants with no italics.
* @default false
*/
includeNonItalicVariants: boolean;
};
export type Variant = {
name: string;
type: 'dark' | 'light';
};
export type Config = {
options: Options;
variants: Record<string, Variant>;
colors: Record<string, string | Record<string, string>>;
};
export type UserOptions = Partial<Options>;
export type UserConfig = Partial<Config>;
export declare const defaultConfig: Config;
export declare const resolveConfig: (flags?: UserOptions) => Promise<{
options: {
/**
* Path to pinecone theme file.
* Append "-color-theme" to your source file for intellisense.
* @default './themes/_pinecone-color-theme.json'
*/
source: string;
/**
* Path to pinecone theme file.
* Append "-color-theme" to your source file for intellisense.
* @default './themes/_pinecone-color-theme.json'
*/
output: string;
/**
* Variable prefix.
* @default '$'
*/
prefix: string;
/**
* Rebuild themes on change.
* @default false
*/
watch: boolean;
/**
* Purge non-pinecone themes and sync package.json contributes
* section.
* @default false
*/
tidy?: boolean | undefined;
/**
* Generate additional variants with no italics.
* @default false
*/
includeNonItalicVariants: boolean;
};
variants: Record<string, Variant>;
colors: Record<string, string | Record<string, string>>;
} | {
options: {
/**
* Path to pinecone theme file.
* Append "-color-theme" to your source file for intellisense.
* @default './themes/_pinecone-color-theme.json'
*/
source: string;
/**
* Path to pinecone theme file.
* Append "-color-theme" to your source file for intellisense.
* @default './themes/_pinecone-color-theme.json'
*/
output: string;
/**
* Variable prefix.
* @default '$'
*/
prefix: string;
/**
* Rebuild themes on change.
* @default false
*/
watch: boolean;
/**
* Purge non-pinecone themes and sync package.json contributes
* section.
* @default false
*/
tidy?: boolean | undefined;
/**
* Generate additional variants with no italics.
* @default false
*/
includeNonItalicVariants: boolean;
};
variants: Record<string, Variant>;
colors: Record<string, string | Record<string, string>>;
} | {
options: {
/**
* Path to pinecone theme file.
* Append "-color-theme" to your source file for intellisense.
* @default './themes/_pinecone-color-theme.json'
*/
source: string;
/**
* Path to pinecone theme file.
* Append "-color-theme" to your source file for intellisense.
* @default './themes/_pinecone-color-theme.json'
*/
output: string;
/**
* Variable prefix.
* @default '$'
*/
prefix: string;
/**
* Rebuild themes on change.
* @default false
*/
watch: boolean;
/**
* Purge non-pinecone themes and sync package.json contributes
* section.
* @default false
*/
tidy?: boolean | undefined;
/**
* Generate additional variants with no italics.
* @default false
*/
includeNonItalicVariants: boolean;
};
variants: Record<string, Variant>;
colors: Record<string, string | Record<string, string>>;
}>;
export declare const defineConfig: (config: UserConfig) => UserConfig;