-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Description
📋 Description
Expose logo and logo-specific params (e.g: logoColor, logoWidth). There are 3 cases for logos:
- Named SimpleIcons logo
- Custom base64-encoded logo
- Named shields custom logo https://github.com/badges/shields/tree/master/logo
At a library level it probably makes sense to reduce that to two cases - SimpleIcons and base64. We can keep our handful of custom logos outside of badge-maker and just treat them as something we handle in server somewhere and pass to the renderer as custom base64.
This will allow us to remove final relative import to the package requiring anything other than makeBadge()
Line 4 in 8621fe4
| const { toSvgColor } = require('../gh-badges/lib/color') |
#4524 never happened, but there are some notes on testing code with peer dependencies in #4524 (comment)
This work should also remove all/most of the remaining code from https://github.com/badges/shields/tree/master/lib (and if there is anything left, we should work out where to move it to)