Visit the following endpoint URL for all available cards and their respective options:
https://afraid-ninnetta-github-cards.koyeb.app/
You can embed one of the available cards in your README using either Markdown OR HTML:
<!-- Markdown -->
![Card](https://afraid-ninnetta-github-cards.koyeb.app/any_card_name)
<!-- HTML -->
<img src="https://afraid-ninnetta-github-cards.koyeb.app/any_card_name" alt="Card" />
Here is a list of cards that can currently be used:
You can customize the appearance of the cards by selecting one of the following themes:
light
dark
dark_2
rgb
lemonade
pattern_1
pattern_2
pattern_3
random
- A random theme from those listed above will be appliedcustom
- You may set your own custom arguments
If you choose the custom
theme, you can configure the card with the following arguments:
args: {
card_color: "Card color. Default: #ffffff [Optional]",
font_color: "Card text color. Default: #000000 [Optional]",
bg_color: "Card Background color. Default: #fff [Optional]",
shadow: "Card shadow. Default: false [Optional]",
shadow_color: "Card shadow color. Default: #000000 [Optional]",
},
- Fork this repository.
- Add your card in the
src/cards
directory. You can refer to the existing cards for guidance. - If your card needs data, add a file inside the
data
directory (supported languages: English and Hindi). - Add a route for your card in the
index.js
file. - Update the
src/help.js
file and theREADME
with your new card's API reference. - Create a pull request.
- Ensure your data file has at least around 100 entries.
You can also create cards in HTML and CSS! Check out the src/cards/motivational-quote.js
file to see how cards are generated with unique styles using HTML and Satori. Refer to the official Satori documentation here for supported CSS properties.
- Fork this repository.
- If you want to add a gradient background, add your gradient code in
src/gradients.js
(refer to the existing gradients). - Add your theme name to the
src/themes.js
file, placing it second-to-last in the array and ensuring the name is unique. - Define your theme in
src/themes.js
(refer to existing themes for structure). - Update the
src/help.js
file and theREADME
with your new theme's API reference.
For more information, visit https://afraid-ninnetta-github-cards.koyeb.app/.