Type Parameters
- TName extends string
- TShades extends PaletteShades
- TColor = TShades[number][1]
- TMap = PaletteMap<TShades>
Returns readonly [TMap, Record<`${TName}-${TShades[number][0]}`, string>, TColor[]]
An array with: 1) A flat palette map 2) A TailwindCSS ready palette
object 3) A flat array of colors (no special sorting, same order as the shades
given as argument)
Create palette, this is primarily thought to improve the reuse of a palette definition between TailwindCSS and straight ES imports