Skip to content

Commit

Permalink
fix: missing elevated card shadow on dark mode (#6185)
Browse files Browse the repository at this point in the history
* fix: missing card component dark mode box shadow

* add changeset

* use white shadows for dark mode
  • Loading branch information
tiffanynwyeung authored Dec 11, 2024
1 parent 4a9e16c commit 96be188
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-needles-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aws-amplify/ui": patch
---

fix: missing elevated card shadow on dark mode
6 changes: 6 additions & 0 deletions packages/ui/src/theme/defaultDarkModeOverride.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ const darkModeTokens = {
tertiary: '{colors.neutral.20}',
},

shadow: {
primary: { value: 'hsla(100, 100%, 100%, 0.25)' },
secondary: { value: 'hsla(100, 100%, 100%, 0.15)' },
tertiary: { value: 'hsla(100, 100%, 100%, 0.05)' },
},

overlay: {
5: 'hsla(0, 0%, 100%, 0.05)',
10: 'hsla(0, 0%, 100%, 0.1)',
Expand Down

0 comments on commit 96be188

Please sign in to comment.