@JonhKellyson
Posted
Man, te aconselho ao invés de colocar as fontes no HTML importa elas no css, por exemplo:
html:
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png"> <link rel="stylesheet" href="style.css"> <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=Outfit:[email protected]&display=swap" rel="stylesheet">CSS:
@import url('https://fonts.googleapis.com/css2?family=Outfit:[email protected]&display=swap');
- OUTRO Ponto, também pode utilizar ROOT para deixar seu código mais simples em relação as cores e fontes utilizadas no seu projeto, outro exemplo irei deixar do meu código:
:root { --fonte1: "Outfit", sans-serif; --corfundo: hsl(212, 45%, 89%); --corbranca: hsl(0, 0%, 100%); --corclara: hsl(219, 16%, 46%); --corescura: hsl(218, 44%, 22%); }
/* você pode denominar o titulo como quiser */
com isso, quando for por exemplo colocar a cor cinza claro no texto, basta utilizar este código:
color: var(--corclara);
Marked as helpful