Home > Designing, Others > Custom Styles in GitHub Readme Files

Custom Styles in GitHub Readme Files

December 23rd, 2020 Leave a comment Go to comments

Even though GitHub Readme files (typically ./readme.md) are Markdown, and although Markdown supports HTML, you can’t put or tags init. (Well, you can, they just get stripped.) So you can’t apply custom styles there. Or can you?

  1. You can use SVG as an (anywhere).
  2. When used that way, even stuff like animations within them play (wow).
  3. SVG has stuff like for textual content, but also for regular ol’ HTML content.
  4. SVG support tags.
  5. Your readme.md file does support with SVG sources.

Sindre Sorhus combined all that into an example.

That same SVG source will work here:


The post Custom Styles in GitHub Readme Files appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

Categories: Designing, Others Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.