UNPKG

707 BTypeScriptView Raw
1import * as CSS from 'csstype';
2import type { Base16Theme } from './themes/index.js';
3export interface Styling {
4 className?: string;
5 style?: CSS.Properties<string | number>;
6}
7export type StylingValueFunction = (styling: Styling, ...rest: unknown[]) => Partial<Styling>;
8export type StylingValue = string | CSS.Properties<string | number> | StylingValueFunction;
9export type StylingConfig = {
10 extend?: string | Base16Theme | StylingValue;
11} & {
12 [name: string]: StylingValue | string | Base16Theme;
13};
14export type Theme = string | Base16Theme | StylingConfig;
15export type StylingFunction = (keys: (string | false | undefined) | (string | false | undefined)[], ...rest: unknown[]) => Styling;