tonami
Version:
Minimal CSS-in-JS library that promotes CSS best-practices and strongly-typed design systems.
7 lines (6 loc) • 406 B
TypeScript
import { Properties } from "csstype";
import { Ruleset } from "./lib/types";
declare type VMAP<T> = Map<string, (props: T) => string>;
export declare function rulesets<Interface>(...rulesets: Ruleset<Interface>[]): (props: Interface) => any;
export declare function replaceFuncsWithVars<T>(css: Ruleset<T>, varsMap: VMAP<T>, baseClass: string): Properties<0 | (string & {}), string & {}>;
export {};