I don’t recall the specifics at the moment but YouTuber Uncle Jessy showed how to take a custom box in his gridfinity video.
https://youtu.be/TvIvoY013xQ