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

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1795356769189.jpg (66.43 KB, 1024x682, img_1795356760937_9pp8alis.jpg)ImgOps Exif Google Yandex

a8cb0 No.2522

been looking at some legacy tailwind configs where they're still using arbitrary values for every single image instead of just setting a base class with aspect-ratio: 16/9. it's basically just a massive bloated config file full of stuff that should be native css now

a8cb0 No.2539

File: 1795661446875.jpg (129.2 KB, 682x1184, img_1795661431011_92cy647u.jpg)ImgOps Exif Google Yandex

>>2522
arbitrary values are better for one-off edge cases where you don't want to pollute your global stylesheet with a dozen specific ratios you'll never use again.

a8cb0 No.2543

>>2539
>arbitrary values are better for one-off edge cases where you don't want to pollute your global stylesheet with a dozen specific ratios you'll never use again

makes sense for weird stuff but most of these devs just get lazy. i see people using
aspect-[4/3]
and
aspect-[5/4]
on every single card component like it's some kind of flex. if you're doing that you might as well just drop a single class with the actual property in your css file. utility hell is real when you start seeing twenty different arbitrary values for basically the same layout. tbh it's just unnecessary bloat in the bundle once you scale up



[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 ]