Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update box shadows #1952

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/sage-assets/lib/stylesheets/components/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $-sage-card-background: transparent;
position: relative;
width: 100%;
background-color: sage-color(white);
box-shadow: sage-shadow(md);
box-shadow: sage-shadow(100);

.sage-card,
.sage-panel & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $-choice-radio-color-checked-inner: map-get($sage-radio-colors, checked-inner);
background-color: sage-color(white);
border: sage-border();
border-radius: sage-border(radius-large);
box-shadow: sage-shadow(md);
box-shadow: sage-shadow(100);
transition: map-get($sage-transitions, default);
transition-property: color, background-color, border-color, box-shadow;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $-stat-box-image-max-width: rem(48px);
@include sage-card($grid: false);
padding: rem(18px) sage-spacing(sm);
border-radius: sage-border(radius-large);
box-shadow: sage-shadow(md);
box-shadow: sage-shadow(100);
background-color: sage-color(white);

.sage-card &,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $-switch-toggle-size: rem(16px);
padding: sage-spacing(card);
border: sage-border();
border-radius: sage-border(radius);
box-shadow: sage-shadow(md);
box-shadow: sage-shadow(100);
background-color: sage-color(white);

.sage-card &,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $-transaction-card-price-max-width: rem(100px);
position: relative;
width: 100%;
background-color: sage-color(white);
box-shadow: sage-shadow(md);
box-shadow: sage-shadow(100);

> * {
min-width: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@
background-color: sage-color(white);
border: sage-border();
border-radius: sage-border(radius-large);
box-shadow: sage-shadow(md);
box-shadow: sage-shadow(100);
}

///
Expand Down
7 changes: 7 additions & 0 deletions packages/sage-assets/lib/stylesheets/tokens/_shadow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ $sage-shadows: (
md: (0 4px 6px -2px rgba(sage-color(grey, 95), 0.03), 0 12px 16px -4px rgba(sage-color(grey, 95), 0.08)),
lg: (0 24px 48px -12px rgba(sage-color(grey, 95), 0.18)),
modal: (0 32px 64px -12px rgba(sage-color(grey, 95), 0.24)),
050: (0 1px 2px 0 rgba(sage-color(grey, 95), 0.05)),
100: (0 1px 3px 0 rgba(sage-color(grey, 95), 0.1), 0 1px 2px 0 rgba(sage-color(grey, 95), 0.06)),
150: (0 4px 8px -2px rgba(sage-color(grey, 95), 0.1), 0 2px 4px -2px rgba(sage-color(grey, 95), 0.06)),
200: (0 12px 16px -4px rgba(sage-color(grey, 95), 0.08), 0 4px 6px -2px rgba(sage-color(grey, 95), 0.03)),
300: (0 20px 24px -4px rgba(sage-color(grey, 95), 0.08), 0 8px 8px -4px rgba(sage-color(grey, 95), 0.03)),
400: (0 24px 48px -12px rgba(sage-color(grey, 95), 0.18)),
500: (0 32px 64px -12px rgba(sage-color(grey, 95), 0.14)),
);

///
Expand Down
Loading