Plugin to adapt current Jira theme


I recently uploaded a plugin to my company’s instance of Jira. The company has changed the ‘look and feel’ of Jira a bit. After installing my plugin, the look and feel of the plugin does not match the rest of the instance of Jira.

After reading this article, I should just change my header links. However, how can I make this dynamic? For example, if the company changes the look and feel, my plugin should adapt to the new look and feel without having to manually changing anything on the code.