|
32 | 32 | - [📚 Adding a new theme](#-adding-a-new-theme) |
33 | 33 | - [🧠 Tips](#-tips) |
34 | 34 | - [🪢 Align the card in the markdown](#-align-the-card-in-the-markdown) |
| 35 | + - [🎭 Adding custom SVG logo](#-adding-custom-svg-logo) |
35 | 36 | - [⚒️ Building from source](#️-building-from-source) |
36 | 37 | - [📝 License](#-license) |
37 | 38 | - [🧑🤝🧑 Contributing](#-contributing) |
@@ -222,6 +223,16 @@ If you're using markdown, you may want to align your cards. There's an easy way |
222 | 223 | <img align="center" src="https://github-readme-tech-stack.vercel.app/api/cards" alt="My Tech Stack" /> |
223 | 224 | ``` |
224 | 225 |
|
| 226 | +### 🎭 Adding custom SVG logo |
| 227 | +Let's assume that you have a [line created](#-how-to-customize-a-line) and want to use your own SVGs. We support that using [Base64](https://en.wikipedia.org/wiki/Base64) format. |
| 228 | +**[\*](https://stackoverflow.com/questions/38985050/how-do-i-use-the-logo-option-in-shields-io-badges) Here's an easy 3-step guide:** |
| 229 | +1. Download the image and use one of the many online tools, e.g. [http://b64.io/](http://b64.io/), to encode it. |
| 230 | +2. Encode the Base64 string in [percent-encoding](https://en.wikipedia.org/wiki/Percent-encoding). Take the Base64 string and use one of the many online tools, e.g. [http://meyerweb.com/eric/tools/dencoder/](http://meyerweb.com/eric/tools/dencoder/), to encode the string. |
| 231 | +3. Finally, replace the first element of the badge (the `logoName`) with this string. (e.g `<Base64>,typescript,2D79C7;`) |
| 232 | + |
| 233 | +>> **Note** |
| 234 | +>> Sometimes the encoded string, of either step 2 or 3, may be too long to be used. You should then try to reduce the size (total pixels) of the image and try again. |
| 235 | +
|
225 | 236 | <hr> |
226 | 237 |
|
227 | 238 | ## ⚒️ Building from source |
@@ -262,4 +273,4 @@ I was inspired by dozens of other projects, check 'em out as well! |
262 | 273 | - [github-readme-stats](https://github.com/anuraghazra/github-readme-stats) |
263 | 274 | - [github-profile-summary-cards](https://github.com/vn7n24fzkq/github-profile-summary-cards) |
264 | 275 | - [markdown-badges](https://github.com/Ileriayo/markdown-badges) |
265 | | -- [shields.io](https://shields.io/) |
| 276 | +- [shields.io](https://shields.io/) |
0 commit comments