Skip to content

Commit

Permalink
Use different NTP tile bg color based on theme
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhong committed Mar 24, 2021
1 parent ab319bf commit c08cf3f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,18 @@ export const TileAction = styled('button')<{}>`
`

export const TileFavicon = styled('img')<{}>`
background-color: #ffffff;
display: block;
padding: 16px;
width: 70px;
height: 70px;
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.3);
border-radius: 8px;
object-fit: contain;
background: ${p => p.theme.palette.white};
@media (prefers-color-scheme: dark) {
background: ${p => p.theme.palette.black};
}
`

interface TileProps {
Expand Down

0 comments on commit c08cf3f

Please sign in to comment.