Reputation: 11
This is the code I followed:
@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Palette+Mosaic&display=swap');
.container {
font-family: Architects Daughter;
}
h3 {
color:brown ;
}
this is the result I got
Upvotes: 0
Views: 57
Reputation: 65808
font-family: Architects Daughter
<-- Architects Daughter must be in quotes because it has a space in the name.
From the docs:
<family-name>
The name of a font family. For example, "Times" and "Helvetica" are font families. Font family names containing whitespace should be quoted. For example: "Comic Sans MS".
@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Palette+Mosaic&display=swap');
.container {
font-family: "Architects Daughter";
}
h3 {
color:brown ;
}
<h3 class="container">Login</h3>
Upvotes: 1