-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34db1df
commit ac254be
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: How to use Google Font in Tailwind CSS | ||
published_at: 2024-11-15T15:00:00.000Z | ||
snippet: 3 steps to use Google Font in Tailwind CSS | ||
--- | ||
|
||
## Why do we use Google Font? | ||
|
||
First of all, I'd like a better looking font for my website😂 | ||
|
||
The benefits of using Google Font are: | ||
|
||
- **Performance**: Google Fonts are hosted on a fast, reliable CDN. They can be loaded faster than self-hosted fonts(for non-chinese users). | ||
|
||
- **Free**: Google Fonts are free to use. | ||
|
||
- **Variety**: Google Fonts has a wide variety of fonts to choose from, and I can easily find the font that suits my website, by typing the text I want to display in the font. | ||
|
||
## How to use Google Font in Tailwind CSS | ||
|
||
### Step 1: Find the font you like | ||
|
||
Go to [Google Fonts](https://fonts.google.com/) and find the font you like. For example, I choose [Roboto](https://fonts.google.com/specimen/Roboto). |