Inside CSS: remove font-size: property from .material-icons class and remove ../fonts from url() attributes, leave just a filename.
Inside JSON: remove non-icon classes (like .md-48, leave only those who contain :after {content} in your css. Then use a notepad (++) to replace all "md- to "material-icons md-.
Upload css, json and font files to your weweb files section.
Follow the guide above to install an iconset.
You’ll get a working iconset, which resizes and can be recolored.
Thanks for looking at this. Your fix has nicely resolved the white/coloured icons being imported but unfortunately there’s another issues that’s reared it’s head.
It seems that you can’t have the same icon packs but in different colours. Something is being shared and overwritten I guess.
I’ve tried with 2 icon sets and the same thing occurs.
White was working on its own as the first import. I then add black as a second set and it replaces the white with black. So I can’t have both it seems.
Just rename common classes in CSS. CSS is named “Cascade” because later loaded rewrites early loaded. You always have something like “iconify…” so…
Take notepad, search for “iconify-akar-icons” and replace every match to “iconify-akar-icons-white” and “iconify-akar-icons-black” (for the second css file).
Hi @Antiokh
Thks for all those tipps
I unfortunately fail at getting the material-icons into WeWeb as icon. Would you share the link of your css and json file in this thread ?
They do not seem to work in your tool either