Skip to content

Commit e16eb2a

Browse files
committed
style: adjust light mode color
1 parent f061cf6 commit e16eb2a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/extension-polkagate/src/popup/home/YouHave.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ export default function YouHave (): React.ReactElement {
3232
const youHave = useYouHave();
3333
const currency = useCurrency();
3434

35-
const shadow = theme.palette.mode === 'dark'
35+
const isDark = theme.palette.mode === 'dark';
36+
const shadow = isDark
3637
? '0px 0px 5px 2px rgba(255, 255, 255, 0.1)'
3738
: '0px 0px 10px rgba(0, 0, 0, 0.10)';
3839

3940
const youHaveStyle = {
4041
'&::before': {
41-
background: 'linear-gradient(to bottom right, rgba(255, 255, 255, 0.3), transparent)',
42+
background: isDark
43+
? 'linear-gradient(to bottom right, rgba(255, 255, 255, 0.3), transparent)'
44+
: 'linear-gradient(to bottom right, rgba(66, 61, 61, 0.276), transparent)',
4245
content: '""',
4346
height: '100%',
4447
left: '-50%',

0 commit comments

Comments
 (0)