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

Add Font variations to ensure normal style and weight #117

Closed leefr closed 6 years ago

leefr commented 6 years ago

In order to ensure certain attributes in a contained context, it seems like there should be a way to specify "normal" in order to override settings from the containing context. I have added variations that enable that for font-style and font-weight here:

Added 'normal' variation to reset font-style to normal from itallic Added 'weightNormal' variation to reset font-weight to normal (400)

mdgriffith commented 6 years ago

So, I ended up implementing a slightly different solution for v5, specifically font weight and font-style will no longer inherit.

Thanks for bringing this up, it wasn't something I had thought of prior to this :)