Skip to content

Commit

Permalink
fix: add spacing vars (#55)
Browse files Browse the repository at this point in the history
* fix: add spacing vars

* update vars

* Update _spacing.scss
  • Loading branch information
adamraider authored and Adam Raider committed Feb 27, 2019
1 parent d6eefd6 commit bc30424
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ray/lib/global/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import './functions';
@import './spacing/spacing';

$ray-class-prefix: 'ray-';
$ray-font-stack-sans-serif: 'Apercu', Avenir, -apple-system, BlinkMacSystemFont,
Expand Down
11 changes: 11 additions & 0 deletions packages/ray/lib/global/spacing/_spacing.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$ray-spacing-baseline: 1rem !default;

$ray-spacing-3xs: $ray-spacing-baseline * 0.125 !default;
$ray-spacing-2xs: $ray-spacing-baseline * 0.25 !default;
$ray-spacing-xs: $ray-spacing-baseline * 0.5 !default;
$ray-spacing-sm: $ray-spacing-baseline * 0.75 !default;
$ray-spacing-md: $ray-spacing-baseline !default;
$ray-spacing-lg: $ray-spacing-baseline * 1.25 !default;
$ray-spacing-xl: $ray-spacing-baseline * 1.5 !default;
$ray-spacing-2xl: $ray-spacing-baseline * 2.5 !default;
$ray-spacing-3xl: $ray-spacing-baseline * 5 !default;

0 comments on commit bc30424

Please sign in to comment.