Answers for "how to include google fonts in react project"

CSS
1

import google fonts into react

@import url('https://fonts.googleapis.com/css?family=Patrick+Hand+SC|Roboto&display=swap');

body {
  font-family: 'Patrick Hand SC', cursive;
}
Posted by: Guest on February-16-2020
0

how to add google fonts to css in react

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@700&display=swap');
at the top of css file
Posted by: Guest on July-31-2020

Code answers related to "how to include google fonts in react project"

Browse Popular Code Answers by Language