2
respostas

Google Fonts

Gente, me tirem uma dúvida, se tenho um projeto onde todo o texto é um tipo de font-family, e eu quero variar com light, regular, bold e extrabold no decorrer do site. Como eu especifico no CSS?

2 respostas

Olá Hellen!

Você pode colocar uma classe nesses textos que você quer estilizar.

No CSS costumamos utilizar o font-weight:

https://www.w3schools.com/cssref/pr_font_weight.asp

Espero que tenha ajudado!

Bons estudo! ^^

Hellen, boa tarde!

Você pode usar para deixar da maneira que preferir a propriedade font-weight

font-weight: normal;
font-weight: bold;

/* Relativo ao elemento pai */
font-weight: lighter;
font-weight: bolder;

font-weight: 100;
font-weight: 200;
font-weight: 300;
font-weight: 400;
font-weight: 500;
font-weight: 600;
font-weight: 700;
font-weight: 800;
font-weight: 900;

/* Valores globais */
font-weight: inherit;
font-weight: initial;
font-weight: unset;

MDN fontes