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