Skip to content

Instantly share code, notes, and snippets.

@pvrego
Last active May 20, 2025 20:54
How to make README.md files with colored texts in Github

Colored text #1

You can use the diff language tag to generate some colored text:

- text in red
+ text in green
! text in orange
# text in gray
@@ text in purple (and bold)@@

However, it adds it as a new line starting with either - + ! # or starts and ends with @@

enter image description here

Placeholders

It's worth mentioning that you can add some colour in a README using a placeholder image service. For example if you wanted to provide a list of colours for reference:

  • #f03c15 #f03c15
  • #c5f015 #c5f015
  • #1589F0 #1589F0 Produces:

#f03c15 #f03c15 #c5f015 #c5f015 #1589F0 #1589F0

Reference : How to add color to Github's README.md file

@minhk43pbc
Copy link

  • text in red

@minhk43pbc
Copy link

-red

@theishu4
Copy link

theishu4 commented Dec 20, 2024

I   \font r o b o t o a m I s h u
$${\color{red}{yourtexthere}}

@supercodingninja
Copy link

Check out Luigi Minardi's repo and you'll be able to do this 👇🏿 Don't forget to give him a star; and while you're at it give me one


🎷 TH S UP ER  CO DI NG  NI N JA! 🎷

@Rrkhaa
Copy link

Rrkhaa commented May 18, 2025

T h i s   i s   a   B i g   T i t l e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment