varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.53k stars 68 forks source link

Support for Material Symbols #471

Open bitspittle opened 7 months ago

bitspittle commented 7 months ago

Kobweb supports MDI (material design icons), but Material Symbols is the new hotness, it seems.

See also: https://developers.google.com/fonts/docs/material_symbols

Instead of adding this

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Icons&family=Material+Icons+Outlined&family=Material+Icons+Two+Tone&family=Material+Icons+Round&family=Material+Icons+Sharp" />

we need to add this:

<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />

The best way forward here is probably forking the silk-icons-mdi project into a silk-icons-ms project (and then de-emphasizing mdi icons from the README?)

But this will require a bit of research first, to 1) see if this is really that different from MDI to support the effort and 2) see how much time it will take to fetch / create the symbols version of https://github.com/varabyte/kobweb/blob/main/frontend/silk-icons-mdi/md-icon-list.txt (which was done with a lot of inspecting webpages and manual reformatting of the output)