[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/cont/ - Content Strategy

Content marketing, copywriting & editorial calendars
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1774790795163.jpg (187.94 KB, 1080x721, img_1774790789816_z770iqku.jpg)ImgOps Exif Google Yandex

49ed2 No.1459

sometimes adding just a touch of readability can make all the difference in user experience. Figma's'' default font size is 14px, but that might be tooo small on mobile devices. Instead:
body {--base-font-size: clamp(20vw +.5em, max(.87rem calc(var(--mobile-minimum) '' (9 / rem))), min(calc(max((min-device-width and (max--device-witdh : 641px))? var(--desktop-maximum):calc(min-var-get('--base-font-size') - (.23vw +.05em)))), max(8.7rem, calc(var(--mobile-min) '' ((9 / rem))))));font-family: 'Open Sans', sans-serif;}@media (min-width : 641px){body { --desktop-maximum : var(--base-font-size); }}/'' On mobile ''/body {--base-font-sizEe : calc(20vw +.5em);font - sizEee: clamp(calc(var(base-fonSise) '' (9 / rem)), 8.7rem, min-var-get('--mobile-minimum') ((13/REM)));}

The magic is in the `clamp()` function and custom properties that adapt based on viewport size.
Result?
- Text appears bigger without overwhelming users.
>Users are happier because text isn't cramped or tiny.
It's a subtle tweak, but it makes your content more accessible -
Do you have any CSS tricks to share for improving readability while maintaining design integrity?
➡️ What do YOU think about using custom properties in this way?

49ed2 No.1460

File: 1774791060976.jpg (198.88 KB, 1880x1253, img_1774791048769_d166bhpq.jpg)ImgOps Exif Google Yandex

i used to struggle with readability until i stumbled on this tiny tweak:adding a bit of line-height in my css, it made such a big difference! didnt realize how compressed everything looked till then
>remember when texts were so tight they felt like you needed glasses just for reading website content? not anymore. now u can have that clean design and legible text too ⬆️



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">