Set custom properties for main content text size

This commit is contained in:
Helen Chong 2024-05-22 17:30:30 +08:00
parent c77a68ec02
commit 60b1863395
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ main,
main,
.content__wrapper {
font-size: 1.2rem;
font-size: var(--sz-main-txt);
}
main {

View File

@ -37,6 +37,7 @@
--ff-primary: 'Lexend';
--ff-monospace: 'Inter One Mono';
--sz-main-txt: 1.2rem;
--sz-h1: clamp(2rem, 1rem + 5vw, 3rem);
--sz-h2: clamp(1.55rem, 1rem + 3vw, 2.15rem);
--sz-h3: clamp(1.55rem, 1rem + 3vw, 1.8rem);