Not too sure about SVGs or how to use custom code like you posted with the generator, I've been using export with PNG. Sorry to be such a total noob on the subject!
Like described here in "custom colors" section: create a new file, copy that code into this new file and save it. It's your "custom palette". Drag and drop it into the generator to update colors.