Looks like I’ve found a problem. I should urlencode a hashtag symbol. Will fix next week, now I’m in a rush.
As a quick workaround, you can just replace ‘#’ with ‘%23’ in any text editor.
UPD: I’ve added a quickfix. When you download css, it replaces hashtag to ‘%23’. Later I’ll change the color handling to make it right way.
To make them colorable, you have to find a CSS containing the codes like \783 from the font instead of svg items.
Like those guys offer:
material-icons-font/css at master · material-icons/material-icons-font (github.com)
I’ve dealt with Material icons, here is a guide:
- Open material-icons-font/font at master · material-icons/material-icons-font (github.com) and download required fonts.
- Download required css styles from here: material-icons-font/css at master · material-icons/material-icons-font (github.com).
- Use my script to generate a JSON file for WeWeb.
- 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.
1 Like
Hey,
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).
or just find the font-based version ( akar-icons-fonts/src/css at main · artcoholic/akar-icons-fonts (github.com)) and follow the guide I made above for Material Icons. Then you’ll be able to handle those icons like predefined by weweb team.

@font-face {
font-family: "akar-icons";
src: url("akar-icons.ttf") format("truetype"),
url("akar-icons.woff") format("woff"),
url("akar-icons.svg?%23akar-icons") format("svg");
}
.akar-icons {
font-family: akar-icons !important;
font-style: normal;
font-weight: normal !important;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[
{
"name": "air",
"class": "akar-icons ai-air"
},
...
]
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