Skip to content

osequi/react-font-showcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-font-showcase

Showcase fonts with React.

Visit https://react-font-showcase.vercel.app

Dev notes

// In any component's render / return please insert
<Head>
  <style>
    {`
			  @font-face {
		  	  font-family: "BlackMambaTrial-Venom-WebTrial";
		  	  font-style: normal;
		  	  font-weight: normal;
		  	  src: local("/black-mamba/BlackMambaTrial-Venom-WebTrial"),
		  	    url("/black-mamba/BlackMambaTrial-Venom-WebTrial.woff") format("woff");
		  	}
  `}
  </style>
</Head>
  • However this injects the style inside <head> and makes it un-optimized on render

Releases

No releases published

Packages

No packages published