@nexim/tailwind-material-colors
Version:
A Tailwind CSS plugin to automatically generate and apply Material Design 3 color palettes.
9 lines • 425 B
JavaScript
import { redFromArgb, greenFromArgb, blueFromArgb } from '@material/material-color-utilities';
/**
* Converts a Material Color Utilities ARGB number to an "R, G, B" string.
*
* @param color - The ARGB color number.
* @returns A string representation of the RGB values.
*/
export const colorToRgbString = (color) => `${redFromArgb(color)} ${greenFromArgb(color)} ${blueFromArgb(color)}`;
//# sourceMappingURL=utils.js.map