Skip to content

Expose the concept of logos, add SimpleIcons as an optional dependency #4947

@chris48s

Description

@chris48s

📋 Description

Expose logo and logo-specific params (e.g: logoColor, logoWidth). There are 3 cases for logos:

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()

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    npm-packageBadge-maker NPM package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions