After Jones Soda did the six-pack of Thanksgiving dinner themed sodas (including Turkey & Gravy), this kind of thing just doesn’t surprise me any more. I guess it’s meant as more of a novelty thing than something people would actually use in seriousness.
The Founders Trilogy (book 1: Foundryside) by Robert Jackson Bennett uses a system of magic called Scriving wherein objects have written upon them instructions that sort of convince the objects that the laws of physics work in different ways. Over long ages engineers found ways to build engines for scriving that had commonly used instructions and essentially allowed more advanced technologies by creating “programming languages” of a sort, if you will, that work in proximity to the engines. So you get this very advanced society with technology built over this magic system, and a main character whose MacGuffin allows for messing with others’ scriving as your setting.
I quite enjoyed the trilogy, and they seem to fit the kind of vibe you’re looking for. Over the course of the books they dive a lot into both the way the magic functions and the history behind how it came to be as it is.