Specimen
Weights and styles
Every weight in the family, rendered live in Barrio from the Google Fonts CDN.
Regular · 400
CSS embed code
Drop the @import or <link> tag into the head of your document, then declare the family in your stylesheet.
CSS @import
/* Add to the top of your CSS file */
@import url('https://fonts.googleapis.com/css2?family=Barrio:wght@400&display=swap');
/* Then use the family */
body {
font-family: 'Barrio', display;
}
HTML <link>
<!-- Add inside <head> -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Barrio:wght@400&display=swap" rel="stylesheet">