Horje
How to include custom fonts in a react project Code Example
how to add custom font to react project
@font-face {
  font-family: "AssistantRegular";
  src: local("AssistantRegular"),
    url("./fonts/assistant.regular.ttf") format("truetype");
  font-weight: normal;
}
How to include custom fonts in a react project
/*Create a directory "fonts" in your src folder
Move your font files in the "fonts" directory
Create / In your App.css file, you can use them as followed
*/

@font-face {
  font-family: 'MyFont';
  src: local('MyFont'), url(./fonts/MyFont.woff) format('woff');
  /* other formats include: 'woff2', 'truetype, 'opentype',
                            'embedded-opentype', and 'svg' */
}

/*Import the App.css file in your App.js*/




Css

Related
carbon today date with 12 00 am Code Example carbon today date with 12 00 am Code Example
css disabled cursor not allowed Code Example css disabled cursor not allowed Code Example
can we block onclick of button using css Code Example can we block onclick of button using css Code Example
brightness css Code Example brightness css Code Example
how to make fixed position responsive Code Example how to make fixed position responsive Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9