@isotope/prototope
Version:
Isotope-based JavaScript library for speedy UI prototyping
17 lines (14 loc) • 332 B
text/typescript
import { Colors, Util } from "../../declarations";
import { createUtil } from "../util";
/**
* Prototope color util.
*
* @param value - Config value.
* @returns - Prototope util.
*/
const textColor = (value: keyof Colors): Util => {
return createUtil(({ colors }) => ({
color: colors[value]
}));
};
export { textColor };