mdgriffith / style-elements

Create styles that don't mysteriously break!
http://package.elm-lang.org/packages/mdgriffith/style-elements/latest
BSD 3-Clause "New" or "Revised" License
445 stars 49 forks source link

producing values of Color type on style-elements 4.3 #159

Closed neocris closed 6 years ago

neocris commented 6 years ago

does anyone knows how to produce values of Color type on style-elements 4.3 module? i mean, i can't find the rgb function to do it like on version 5.01

btw where is that #style-elements channel on elm slack? is it still active?

neocris commented 6 years ago

as far as i can get for know, the only way is trough undocumented properties of the Color class like Color.black or Color.white. still can't figure it out how to set custom colors presuming it's possible at all

neocris commented 6 years ago

after trying a bit it happens that the rgb function is also a member of the Color Class. can't understand why this doesn't show on 4.3 docs. should be added

neocris commented 6 years ago

how silly of me, just realized the Color class in question is not from the style-elements module but from elm core itself. excuse my newbieness. very sorry for the trouble