theme-vir
Version:
Create an entire web theme.
32 lines (31 loc) • 1.45 kB
TypeScript
import { type PartialWithUndefined } from '@augment-vir/common';
import { BookPageControlType, type BookPage } from 'element-book';
import { type ColorThemeOverride } from './color-theme-init.js';
import { type ColorTheme } from './color-theme.js';
/**
* Create multiple element-book pages to showcase a theme its overrides (if any).
*
* @category Color Theme
*/
export declare function createColorThemeBookPages({ parent, title, theme, hideInverseColors, overrides, useVerticalLayout, prefixGroupByCount, hideCopyCode, }: {
title: string;
theme: Readonly<ColorTheme>;
} & PartialWithUndefined<{
hideCopyCode: boolean;
parent: Readonly<BookPage>;
hideInverseColors: boolean;
overrides: ReadonlyArray<Readonly<ColorThemeOverride>>;
useVerticalLayout: boolean;
/**
* The number of CSS variable name prefixes to group colors by.
*
* @default 0
*/
prefixGroupByCount: number;
}>): (BookPage<{}, Readonly<BookPage> | undefined, {
'Show Var Names': import("element-book").BookPageControlInit<BookPageControlType.Checkbox>;
'Show Contrast Tips': import("element-book").BookPageControlInit<BookPageControlType.Checkbox>;
}> | BookPage<{}, BookPage<{}, Readonly<BookPage> | undefined, {
'Show Var Names': import("element-book").BookPageControlInit<BookPageControlType.Checkbox>;
'Show Contrast Tips': import("element-book").BookPageControlInit<BookPageControlType.Checkbox>;
}>, {}>)[];