uinix-theme
Version:
Fully configurable framework-agnostic theme system (spec, theme, renderer, themed styles/keyframes/CSS variables) for building UIs. Your theme your rules 🤘.
30 lines (29 loc) • 997 B
TypeScript
export function themeValue({ cssVariables, namespace, themeSpec }: {
cssVariables?: import("../types.js").CssVariables | undefined;
namespace?: string | undefined;
themeSpec: ThemeSpec;
}): _FelaPlugin;
export type CssValue = import('../types.js').CssValue;
export type CssVariables = import('../types.js').CssVariables;
export type StyleObject = import('../types.js').StyleObject;
export type Theme = import('../types.js').Theme;
export type ThemeProperty = import('../types.js').ThemeProperty;
export type ThemeSpec = import('../types.js').ThemeSpec;
export type _FelaPlugin = import('../types.js')._FelaPlugin;
/**
* A map storing the themeProperty and resolve method.
*/
export type ThemePropertyResolver = {
/**
* Resolves CSS value given a theme.
*/
resolve: (theme: Theme) => CssValue;
/**
* A theme property.
*/
themeProperty: ThemeProperty;
};
/**
* ;
*/
export type ThemeMapping = Partial<Record<string, ThemePropertyResolver>>;