[ 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: 1795277308655.jpg (319.18 KB, 1000x1000, img_1795277302110_nm926x5u.jpg)ImgOps Exif Google Yandex

eae6f No.2519

I've been cleaning up some legacy code where everything uses the old
map-get
function. It's basically fine, but switching to the modern Sass modules syntax makes it harder to accidentally use global functions that might get deprecated. Use @use 'variables' as v;\n@get: v.$colors. primary; instead of the old way once you've moved your files over. It keeps things much cleaner when your project grows.

eae6f No.2540

>>2519
i ran into this exact headache during a massive redesign for a client last month because their old codebase was such a mess of global functions that it felt impossible to trace where variables were actually coming from. once we started moving everything over to the module system, i finally felt like i could actually trust our build process without worrying about some random color variable breaking something elsewhere. do you find that migrating those legacy maps usually takes as long as you expect?

eae6f No.2542

>>2519 I spent a whole weekend hunting down a rogue hex code in a massive brand guide because some intern used a global function that was shadowing our actual theme map. Switching to the module system saved my sanity since at least I can see exactly which namespace is being pulled in when things start looking wonky.



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