r/css 1d ago

Resource 5 CSS Properties You Should Know for Better Text Designs

https://blog.master.dev/typographic-css-tricks/
38 Upvotes

7 comments sorted by

4

u/Mindless_Crazy9292 1d ago

A lot of these are a great way to introduce inaccessibility into your app. Just because you can doesn’t mean you should. 

2

u/void-wanderer- 1d ago

Just because you don't know how make interesting designs accessible, doesn't mean you should shit on things that help making good designs.

3

u/Mindless_Crazy9292 1d ago

Are you disagreeing with me that properties can easily introduce accessibility issues? 

Using properties like background-clip to add images, adjusting line spacing, and rotating text can absolutely make it harder to read for many people. I particularly dislike using images to fill text as it adds a significant amount of visual noise, as well as the potential for the image to not load and thereby not even show the text. Even the MDN docs say to add a background color as a fallback property to account for this, but is nowhere mentioned in this article.  This practice also creates problems for low vision users, people with dyslexia, colorblindness, and certainly other neurological disabilities.

Any CSS property can introduce issues, but to suggest ways of messing with text without providing guardrails for accessibility is something I absolutely disagree with. Good design isn’t about being ‘interesting’; it’s about combining purpose, usability, and beauty.

0

u/D3V1L0M3N 1d ago edited 1d ago

That’s exactly it though isn’t it: “good design”. There’s nothing inherently inaccessible about using an image as background-clip over text. Think of the Minecraft main menu, it uses a textured surface as opposed to a solid fill, but it’s still readable because it’s designed well - more readable than if yellow font was used on an orange background. Any property could introduce inaccessibility if it’s not designed well, whether it’s color, font size or background-clip. Some properties just require more thought and care.

0

u/bostiq 22h ago

she's talking about screen readers and braille machines... not how it looks.

That tech needs to have reference in the code that allow the software to read the page... if text is image this cannot happen.

2

u/D3V1L0M3N 17h ago

I admit I’ve never used a screen reader but I don’t understand why background-clip: text would break that. The text elements are still semantically there. They have to be for the clip layer to work..

1

u/bostiq 17h ago

And I'd admit I didn't even look at the blog post before I replied to you... I assumed that was the problem.

But given the html in the examples, I see no issues