ABSphreak/readme-jokes

How to use the parameters?

mirzafahad opened this issue · 2 comments

Couldn't figure out how to use the parameters. Like, how to change the bgcolor. Can you provide an example?

Hey @mirzafahad,
Thanks for reaching out.

You can change the colors on the card using following URL parameters:

  • bgColorBackground Color
  • borderColorBorder Color
  • qColorQuestion Color
  • aColorAnswer Color
  • textColorNormal text Color
  • codeColorCode Color

Example → If you want to change the bgColor to #1b4332, you would change the # symbol with %23 in URL and keep the color code same like this:

https://readme-jokes.vercel.app/api?bgColor=%231b4332

Hope it answers your query.
Reopen this issue or just comment on the thread if you have any further doubts/suggestions.

Thank you very much!