Skip to content

Commit

Permalink
Enhance presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoizey committed Dec 15, 2023
1 parent 19cb857 commit d14f7d1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 13 deletions.
27 changes: 20 additions & 7 deletions assets/sass/_utopia.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,26 @@

/* @link https://utopia.fyi/type/calculator?c=320,18,1.2,1140,20,1.333,4,1,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l */

// :root {
// --step--1: clamp(0.94rem, 0.94rem + 0vw, 0.94rem);
// --step-0: clamp(1.13rem, 1.08rem + 0.24vw, 1.25rem);
// --step-1: clamp(1.35rem, 1.23rem + 0.62vw, 1.67rem);
// --step-2: clamp(1.62rem, 1.39rem + 1.17vw, 2.22rem);
// --step-3: clamp(1.94rem, 1.55rem + 1.98vw, 2.96rem);
// --step-4: clamp(2.33rem, 1.7rem + 3.15vw, 3.95rem);

// --step--1-0: clamp(0.94rem, 0.82rem + 0.61vw, 1.25rem);
// }

/* @link https://utopia.fyi/type/calculator?c=320,16,1.25,1140,24,1.414,4,1,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
--step--1: clamp(0.94rem, 0.94rem + 0vw, 0.94rem);
--step-0: clamp(1.13rem, 1.08rem + 0.24vw, 1.25rem);
--step-1: clamp(1.35rem, 1.23rem + 0.62vw, 1.67rem);
--step-2: clamp(1.62rem, 1.39rem + 1.17vw, 2.22rem);
--step-3: clamp(1.94rem, 1.55rem + 1.98vw, 2.96rem);
--step-4: clamp(2.33rem, 1.7rem + 3.15vw, 3.95rem);
--step--1: clamp(0.8rem, 0.6983rem + 0.5085vw, 1.0606rem);
--step-0: clamp(1rem, 0.8049rem + 0.9756vw, 1.5rem);
--step-1: clamp(1.25rem, 0.91rem + 1.7vw, 2.1213rem);
--step-2: clamp(1.5625rem, 1.0018rem + 2.8037vw, 2.9994rem);
--step-3: clamp(1.9531rem, 1.0604rem + 4.4634vw, 4.2406rem);
--step-4: clamp(2.4413rem, 1.0539rem + 6.9366vw, 5.9963rem);

--step--1-0: clamp(0.94rem, 0.82rem + 0.61vw, 1.25rem);
--step--1-0: clamp(0.8rem, 0.5268rem + 1.3659vw, 1.5rem);
}
13 changes: 7 additions & 6 deletions assets/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ body {
background-color: colors.$surface;
color: colors.$text;

font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
// https://github.com/system-fonts/modern-font-stacks#humanist
font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans',
source-sans-pro, sans-serif;
font-size: var(--step-0);
line-height: $line-height;
}
Expand Down Expand Up @@ -119,7 +120,7 @@ h6 {
}

h1 {
font-size: var(--step-4);
font-size: var(--step-3);

.breadcrumb + &,
.flag + & {
Expand All @@ -128,16 +129,16 @@ h1 {
}

h2 {
font-size: var(--step-3);
font-size: var(--step-2);
}

h3 {
font-size: var(--step-2);
font-size: var(--step-1);
margin-block-start: spaces.$xxxl;
}

h4 {
font-size: var(--step-1);
font-size: var(--step-0);
margin: spaces.$xl 0 spaces.$s;
}

Expand Down

0 comments on commit d14f7d1

Please sign in to comment.