thien-do / moai

A React component library, where buttons look like buttons🗿
https://moai.thien.do
127 stars 26 forks source link

Expose category colors as an array #284

Closed thien-do closed 2 years ago

thien-do commented 2 years ago

Also it should be as const

clitetailor commented 2 years ago

@thien-do Can give more description about the purpose of this issue. What does it do and how does it shall be?

thien-do commented 2 years ago

Hi @clitetailor category colors are currently exported as an object:

https://github.com/moaijs/moai/blob/c7ef4b5ce7a8f4dc160f45979e8b228bfa3cc4cc/core/src/category/category.tsx#L5-L14

We need to also export category colors as an array. It can be an array of values or keys