Re:Almond.css: Collection of CSS styles to make simple websi...
by moritzwarhier on Monday February 28, 2022 @06:43AM
(#30498804)
I employed another questionable technique in that project to avoid the default font-weight of 300.
The specific custom font that the design required didn't have a semibold variant, only medium.
So I declared the "Light" variant as 400 in the @font-face declaration and put regular at 500, medium at 600.
So many more "requirements" of this client and my employer were terrible, I tried my best to improve or avoid them. Too many animations, huge images, stupid scroll-related effects etc. There are multiple stakeholders involved and I tried my best to voice concerns and positively influence decisions.
In the end I just have to move on and look for better work.
200, on the other hand, is unquestionably bad for body-sized type, and no one sane will disagree.
(Useful related research work here: Accessible Perceptual Contrast Algorithm, APCA, is being developed to replace the old and terrible contrast ratio calculations used in WCAG; and it takes font weight into account! https://www.myndex.com/APCA/ lets you explore this and see it visually. I said a minimum of 20px for 300 weight; APCA will tend to be a little more lenient than me, and declares a minimum acceptable font size of 17px for 300 black on white.)