Thanks, I gave it a try. It's different from Gist, however, this too doesn't have theme options. I actually wanted to customize the look of the code snippet to match my blog's theme (something in dark).
https://blog.rampatra.com/how-to-add-search-in-jekyll