christopherafbjur / sanity-plugin-icon-picker

MIT License
30 stars 27 forks source link

Optimize icon provider structure #1

Closed christopherafbjur closed 3 years ago

christopherafbjur commented 3 years ago

Encapsulate current icon generators, preferably in a class that contain a render method for the indivudal icon element correctly as the process might/will be provider specific

christopherafbjur commented 3 years ago

Also decide how we extract icon prefixes. We're trying to do it dynamically now which should work for FA but might cause unexpected issues for F7 as we extract the icon components and extract their Function name which we then process by converting the PascalCasing to snake_casing. Might be better to get the icon prefixes from a cheatsheet saved as json