@awal-solution/tailwind-theming
Version:
<div align="left"> <h1>Tailwind theming</h1> <p>The <b>TailwindCSS Multi-Theming Plugin</b> is a utility for creating and managing multiple themes in your TailwindCSS-based projects. With this library, you can define, add, update, and remove themes dyn
18 lines (17 loc) • 919 B
TypeScript
export declare const escape: (string?: string) => string;
/**
* @param value - a custom prop value
* @return the value converted to a string of its rgb components comma separated if it is a color else it returns the value unaltered
*/
export declare const toCustomPropValue: (value: string | number) => string;
/**
* @param valuePath - the path to get to the value
* @return valuePath concatenated as a kebab cased custom property
*/
export declare const toCustomPropName: (valuePath: string[]) => string;
/**
* @param value - the value of the custom prop to generate
* @param valuePath - the path to get to the value
* @return a normal custom prop generated from valuePath if the value is not a color else it is a function that generates custom prop configured with opacity when called with opacity configuration
*/
export declare const asCustomProp: (value: string | number, valuePath: string[]) => string;