Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grammar for importing badge from img.shields.io #150

Open
Z1zs opened this issue Oct 30, 2024 · 0 comments
Open

Grammar for importing badge from img.shields.io #150

Z1zs opened this issue Oct 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Z1zs
Copy link

Z1zs commented Oct 30, 2024

Describe the bug
I try to figure out what's the rules of badge URL generated by github-profilinator.com.

To Reproduce
The generated URL has a format like

<img src=https://img.shields.io/badge/github-%2324292e.svg?&style=for-the-badge&logo=github&logoColor=white alt=github style="margin-bottom: 5px;" />

, where "2324292e" in "github-%2324292e.svg" is really confusing for me. I suppose it's a hex RGBA color, however when I replace "2324292e" with "232429", it seems that both the color and opacity are changed. Could anyone explain what "2324292e" stands for?

Expected behavior
I have checked out the docs of img.shields.io but haven't found a usage like this——They just indicate the logoColor and labelColor by appending them in the URL (like "https://img.shields.io/badge/:badgeContentlogoColor=2324292e&labelColor=2324292e&color=2324292e")

Screenshots

  1. Github's badge URL (with an adiitional 2e):

<img src=https://img.shields.io/badge/github-%2324292e.svg?&style=for-the-badge&logo=github&logoColor=white alt=github style="margin-bottom: 5px;" />

github
  1. Github's badge URL (without 2e):
    <img src=https://img.shields.io/badge/github-%232429.svg?&style=for-the-badge&logo=github&logoColor=white alt=github style="margin-bottom: 5px;" />
github

Desktop (please complete the following information):

  • OS: windows
  • Browser: chrome
@Z1zs Z1zs added the bug Something isn't working label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant