Closed joelhooks closed 7 years ago
This is another reason why this story would be very helpful: https://github.com/eggheadio/tachyons-egghead/issues/28
Then you could have any components that have a color
prop use:
import colors from 'egghead-colors'
...
Thing.propTypes = {
color: oneOf(colors),
}
We are using the gray color for icons and need it added so it won't be sad about the proptype with regards to color. We might consider adding all of our core colors or perhaps not enforcing it at all?