Better SVG Uploads in CMS and in files

It would be great to be able to use the currentColor inside a uploaded SVG. Mostly for CMS where the current workflow for a SVG inside CMS for me, is to add the svg code as a text, and render it with custom JS code.

Another example for a usecase with currentColor as a uploaded SVG asset; when using custom bullet list styling, it cant have a svg element as far as im aware, so i had to use the a background image on the ::before element (bullet), but when on a section with dark mode, i have to change the styling.

The most dynamic way to work with SVG's is with currentColor in my opinion, and i use it all the time. Would be great to see support for this going forward.

I am aware that i can use SVG import for static content. And i use it all the time, but for most usecases we simply need to add a SVG icon that can respond to the inherited color..

  • Simon Nilsen
  • Aug 4 2025
  • Reviewed
  • Simon Nilsen commented
    04 Aug 10:56

    I just saw a post from 2018 that possibly could solve this, but the post is old, and i dont know if they are working on it..

    The idea was a own SVG element. This could probably be used in the CMS as well. So i think this is a good solution.