Wrote an article on how to replicate the CSS Tricks Scrollbar and understanding the pseudo-elements to create a custom scrollbar.
https://blog.esteetey.dev/make-your-website-stand-out-with-a-custom-scrollbar
https://blog.esteetey.dev/make-your-website-stand-out-with-a-custom-scrollbar