UNPKG

dynamic-theme-utilities

Version:

The dynamic-theme-utilities is a JavaScript package designed to facilitate the creation and manipulation of dynamic themes, particularly for Material Design color schemes.

12 lines (10 loc) 249 B
import { convertToRGB } from "./rgb"; import { convertToHex } from "./hex"; export const convertScheme = (scheme, to) => { switch (to) { case "rgb": return convertToRGB(scheme); case "hex": return convertToHex(scheme); } };