Skip to content

Commit

Permalink
Use clamp() for base font size
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Oct 6, 2024
1 parent 43c7c12 commit 7066d9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/assets/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
--ff-heading: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
--ff-monospace: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;

--fs-base: calc(16px + 0.19vw);
--fs-h1: clamp(2.2rem, 1rem + 5vw, 2.65rem);
--fs-h2: clamp(1.7rem, 1rem + 3vw, 2.3rem);
--fs-h3: clamp(1.7rem, 1rem + 3vw, 2rem);
--fs-h4: clamp(1.6rem, 1rem + 3vw, 1.8rem);
--fs-base: clamp(1.05rem, 1rem + 0.3096vi, 1.18rem);
--fs-h1: clamp(2.2rem, 1rem + 5vi, 2.65rem);
--fs-h2: clamp(1.7rem, 1rem + 3vi, 2.3rem);
--fs-h3: clamp(1.7rem, 1rem + 3vi, 2rem);
--fs-h4: clamp(1.6rem, 1rem + 3vi, 1.8rem);
--fs-main-txt: 1.12em;
--fs-profile: 1.2em;
--fs-bloglist-title: 1.2em;
Expand Down

0 comments on commit 7066d9f

Please sign in to comment.