add main text styles

This commit is contained in:
Lyn Fugmann 2024-09-20 14:46:23 +02:00
parent 4a0551c731
commit c1608f3df1
2 changed files with 38 additions and 2 deletions

View file

@ -26,15 +26,48 @@ eleventyComputed:
{% css %}
:root {
--page-width: 75rem;
--color-text: #495057;
--color-primary: {{ eseColor }};
font-size: 17px;
}
body {
font-family: sans-serif;
margin: 0;
font-size: 17px;
font-family: sans-serif;
line-height: 1.5;
color: var(--color-text);
}
main {
max-width: var(--page-width);
margin-left: auto;
margin-right: auto;
}
h1, h2, h3, h4 {
font-family: Aileron, sans-serif;
color: var(--color-primary);
}
h1 {
font-weight: 700;
font-size: 2.8rem;
text-transform: uppercase;
}
h2 {
font-weight: 300;
font-size: 2.4rem;
line-height: 2;
}
h3 {
font-weight: 300;
font-size: 1.8rem;
line-height: 2;
}
h4 {
font-weight: 400;
font-size: 1.3rem;
line-height: 2;
}
h5 {
font-weight: 700;
font-size: 1rem;
margin-bottom: 1rem;
}
{% endcss %}