Skip to content

Commit

Permalink
fix: change breakpoint tokens to sass variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ella-etch committed Sep 18, 2024
1 parent a58dbc2 commit 856a955
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/tokens/breakpoint.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
:root {
--mobius-breakpoint-xs: 0;
--mobius-breakpoint-sm: 30rem; // 480px
--mobius-breakpoint-md: 37.5rem; // 600px
--mobius-breakpoint-lg: 48rem; // 768px
--mobius-breakpoint-xl: 64rem; // 1024px
--mobius-breakpoint-xxl: 80rem; // 1280px
--mobius-breakpoint-xxxl: 90rem; // 1440px
--mobius-breakpoint-tablet: var(--mobius-breakpoint-lg);
--mobius-breakpoint-desktop: var(--mobius-breakpoint-xl);
--mobius-breakpoint-max: var(--mobius-breakpoint-xxxl);
}
// CSS variables don't work in media queries
// So these breakpoint tokens are SASS variables instead

$mobius-breakpoint-xs: 0;
$mobius-breakpoint-sm: 30rem; // 480px
$mobius-breakpoint-md: 37.5rem; // 600px
$mobius-breakpoint-lg: 48rem; // 768px
$mobius-breakpoint-xl: 64rem; // 1024px
$mobius-breakpoint-xxl: 80rem; // 1280px
$mobius-breakpoint-xxxl: 90rem; // 1440px
$mobius-breakpoint-tablet: $mobius-breakpoint-lg;
$mobius-breakpoint-desktop: $mobius-breakpoint-xl;
$mobius-breakpoint-max: $mobius-breakpoint-xxxl;

0 comments on commit 856a955

Please sign in to comment.