Skip to content

Commit

Permalink
feat: notification light theme (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
meelrossi committed Mar 26, 2024
1 parent 320f960 commit 878cf08
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .storybook/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const LIGHT_THEME = `
--shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
--shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.12);
--shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.16);
--shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.1);
--shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16);
--shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.2);
Expand Down Expand Up @@ -119,6 +120,7 @@ const DARK_THEME = `
--shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16);
--shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.24);
--shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.32);
--shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.8);
--shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16);
--shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.24);
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Or you can create your own theme like this:
--shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
--shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.12);
--shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.16);
--shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.1);

--shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16);
--shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.2);
Expand Down
1 change: 1 addition & 0 deletions src/components/IconBadge/IconBadge.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

.dui-icon-badge .text {
font-size: 13px;
color: white;
}

.dui-icon-badge .dui-icon-badge__icon {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Notifications/NotificationsFeed.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
z-index: 100;
border-radius: 8px;
background: var(--background);
box-shadow: 0px 8px 16px 12px rgba(0, 0, 0, 0.8);
box-shadow: var(--shadow-4);
transition: opacity 0.3s ease;
}

Expand Down Expand Up @@ -77,7 +77,7 @@
height: 100%;
justify-content: space-between;
max-height: 290px;
overflow-y: scroll;
overflow-y: auto;
overscroll-behavior-y: contain;
}

Expand Down
1 change: 1 addition & 0 deletions src/themes/alternative/dark-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
--shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16);
--shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.24);
--shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.32);
--shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.8);

--shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16);
--shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.24);
Expand Down
1 change: 1 addition & 0 deletions src/themes/alternative/light-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
--shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
--shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.12);
--shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.16);
--shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.1);

--shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16);
--shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.2);
Expand Down

0 comments on commit 878cf08

Please sign in to comment.