You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**title**|`?title=My%20Title`| My Tech Stack | The title of the card. `%20` can be used as a space. |
52
+
|**theme**|`?theme=github_dark`| github | The theme of the card. You can browse between the themes [here](docs/THEMES.md). |
53
+
|**align**|`?align=center`| left | The alignment of the badges. (`left`, `center`, `right`) |
54
+
|**titleAlign**|`?align=center`| left | The alignment of the title. (`left`, `center`, `right`) |
55
+
|**showBorder**|`?showBorder=false`| true | Display the border around the card or not. (`true`, `false`) |
56
+
|**hideTitle**|`?hideTitle=true`| false | Display the title of the card or not. (`true`, `false`) |
57
+
|**hideBg**|`?hideBg=true`| false | If true, sets the background to transparent. (`true`, `false`) |
58
+
|**borderRadius**|`?borderRadius=12.5`| 4.5 | Number between 0 and 50. |
59
+
|**fontFamily**|`?fontFamily=consolas`| Segoe UI | The font family of the title. If the specified family doesn't exist, the default is used. |
60
+
|**fontSize**|`?fontSize=20`| 18 | The size of the title. Accepts a number between 15 and 30. |
61
+
|**fontWeight**|`?fontWeight=normal`| semibold | The thickness of the title. (`thin`, `normal`, `semibold`, `bold`) |
62
+
|**width**|`?width=500`| 495 | The width of the card. Accepts a valid number. |
63
+
|**gap**|`?gap=15`| 10 | The gap between the badges. Accepts a number between 0 and 30. |
64
+
|**lineHeight**|`?lineHeight=10`| 7 | The gap between the lines. Accepts a number between 0 and 30. |
65
+
|**lineCount**|`?lineCount=2`| 1 | The number of lines you want to add to your card. |
66
+
|**line{n}**|`?line1=html5,html5,auto`| - | The current line of the badge, where {n} is a number. _`(1 <= n <= lineCount)`_|
79
67
80
68
<hr>
81
69
82
70
## 🪁 Themes
71
+
83
72
These cards come with several built-in themes that you can use. You can find them all by clicking [here](docs/THEMES.md).
84
73
If you have a cool new theme in mind, or want to add one for yourself and others, please see [#45](https://github.com/0l1v3rr/github-readme-tech-stack/issues/45).
85
74
86
75
### 🖌 Customizing a theme
76
+
87
77
These query parameters allow you to customize a theme.
88
78
These parameters only accept valid hexadecimal colors, otherwise they will not be applied. Please use `%23` instead of `#`.
89
79
90
80
> **Warning**
91
81
> If the `?theme=` parameter is specified, any of these color adjustments will override the theme values.
92
82
93
-
| Parameter | Example | Description |
94
-
|-----------|---------|-------------|
95
-
|**bg**|`?bg=%2383324c`| The color of the background. |
96
-
|**border**|`?border=%232da7c7`| The color of the border. |
97
-
|**badge**|`?badge=%2383324c`| The color of the badges. |
98
-
|**titleColor**|`?titleColor=%232da7c7`| The color of the title. |
You can use [GitHub's new feature](https://github.blog/changelog/2022-05-19-specify-theme-context-for-images-in-markdown-beta/) to specify whether to display images for light or dark mode users.
We support this using [Base64](https://en.wikipedia.org/wiki/Base64) format.
129
-
**[\*](https://stackoverflow.com/questions/38985050/how-do-i-use-the-logo-option-in-shields-io-badges) Here's an easy 3-step guide:**
133
+
**[\*](https://stackoverflow.com/questions/38985050/how-do-i-use-the-logo-option-in-shields-io-badges) Here's an easy 3-step guide:**
134
+
130
135
1. Download the SVG and use one of the many online tools, e.g. [http://b64.io/](http://b64.io/), to encode it.
131
136
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.
132
137
3. Finally, replace the first element of a badge (the `logoName`) with this string inside the URL. (`<Base64>,typescript,2D79C7;`)
133
138
134
139
<hr>
135
140
136
141
## ⚒️ Building from source
142
+
137
143
If you don't have NodeJS, [download and install it](https://nodejs.org/en/).
138
144
Then open a terminal and type the following commands:
0 commit comments