eggheadio / egghead-ui

egghead UI pieces as a package and app
https://styleguide.egghead.io
28 stars 6 forks source link

Add gray color to icons #100

Closed joelhooks closed 7 years ago

joelhooks commented 7 years ago

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?

image

trevordmiller commented 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),
}