DEV Community

Jingtao Han
Jingtao Han

Posted on

How to Implement Fonts in Lit

Fonts are an important factor when creating a web application. They play an important role when it comes to the appearance of your website.

To access fonts, you can write your own code or use a third party service.

Font Family
p {
font-family: Helvetica, "Trebuchet MS", Verdana, sans-serif;
}

Traditionally, fonts can be applied using HTML's font-family property. The system will traverse through the list of font-family values until it finds the one the coder identified. The downside is that the font choices are limited.

You can also import fonts in your CSS file. You can either use the CSS @import or HTML tag.

< link href="https://fonts.googleapis.com/css?family=Kaushan+Script&display=swap" rel="stylesheet">

Top comments (0)