Skip to content

Commit

Permalink
fix: missing space variables (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander authored Jul 20, 2023
1 parent f6d7b42 commit 92198f4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/static/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
segoe ui symbol;

/* @link https://utopia.fyi/space/calculator?c=
320,18,1.2,1240,20,1.25,5,2,&s=0.8|0.5|0.2,1.2|1.5,s-l&g=s,l,xl,12 */
320,18,1.2,1240,20,1.25,5,2,&s=0.8|0.5|0.2,1.2|1.5|1.8|3.2|6,s-l&g=s,l,xl,12 */

/* Space 3xs: 4px → 4px */
--space-3xs: clamp(0.25rem, calc(0.25rem + 0vw), 0.25rem);
Expand All @@ -97,6 +97,15 @@
/* Space l: 27px → 30px */
--space-l: clamp(1.69rem, calc(1.62rem + 0.33vw), 1.88rem);

/* Space xl: 32px → 36px */
--space-xl: clamp(2rem, calc(1.91rem + 0.43vw), 2.25rem);

/* Space 2xl: 58px → 64px */
--space-2xl: clamp(3.63rem, calc(3.49rem + 0.65vw), 4rem);

/* Space 3xl: 108px → 120px */
--space-3xl: clamp(6.75rem, calc(6.49rem + 1.3vw), 7.5rem);

/* One-up pairs */

/* Space 3xs-2xs: 4px → 10px */
Expand All @@ -114,6 +123,15 @@
/* Space m-l: 22px → 30px */
--space-m-l: clamp(1.38rem, calc(1.2rem + 0.87vw), 1.88rem);

/* Space l-xl: 27px → 36px */
--space-l-xl: clamp(1.69rem, calc(1.49rem + 0.98vw), 2.25rem);

/* Space xl-2xl: 32px → 64px */
--space-xl-2xl: clamp(2rem, calc(1.3rem + 3.48vw), 4rem);

/* Space 2xl-3xl: 58px → 120px */
--space-2xl-3xl: clamp(3.63rem, calc(2.28rem + 6.74vw), 7.5rem);

/* Custom pairs */

/* Space s-l: 18px → 30px */
Expand Down

0 comments on commit 92198f4

Please sign in to comment.