theme-vir
Version:
Create an entire web theme.
14 lines (13 loc) • 588 B
TypeScript
import { type DeclarativeElementDefinition } from 'element-vir';
import { type HeadingLevel } from './theme-options.js';
export type Theme<TagPrefix extends string> = {
elements: {
bold: DeclarativeElementDefinition<`${TagPrefix}-b`>;
monospace: DeclarativeElementDefinition<`${TagPrefix}-monospace`>;
paragraph: DeclarativeElementDefinition<`${TagPrefix}-p`>;
code: DeclarativeElementDefinition<`${TagPrefix}-code`>;
heading: DeclarativeElementDefinition<`${TagPrefix}-heading`, {
headingLevel: HeadingLevel;
}>;
};
};