Open hbruch opened 1 week ago
Right. Originally fonts were defined in sass/themes per theme. I am not sure why shared components must redefine the fonts. I will experiment a bit.
Also, it is a bit strange that only a couple of UI components define a font directly. Maybe that can be fixed.
I tested removing font defs from a couple of digitransit-component libs and did not see any change.
My guess is that scattered font styles are just some copy paste rubbish.
Maybe the only required place is in sass/themes/my-theme folder. Something to clean up during the upcoming techdebt theme days!
For instances which should use other font families as the currently used
Gotham
, it is hard to adapt the styling.Grepping for
Gotham
at least returns the following instances:It would be nice to be able to declare font-families per theme and have this definition reused by components.