Is it possible to modify a function in a helper via the plugin or theme component system?

I don’t think that will work because I need the colour to be fetched from the category settings - so the border colour will vary for each category. (I’ve updated my post above to reflect this.)

Unless that can be fetched via JS (/adding to the DOM)? (If so can you give me an example please?)