feat(react): improve dark mode

This commit is contained in:
Pavel Prichodko 2022-04-18 15:49:36 +02:00
parent 47bee147d9
commit 9e20343cab
No known key found for this signature in database
GPG Key ID: 8E4C82D464215E83
9 changed files with 18 additions and 22 deletions

View File

@ -7,8 +7,6 @@ import { Dialog, Grid, Text } from '~/src/system'
export const ConnectWalletDialog = () => { export const ConnectWalletDialog = () => {
const [wallet, setWallet] = useState<'coinbase' | undefined>() const [wallet, setWallet] = useState<'coinbase' | undefined>()
console.log(wallet)
// TODO: Add wallet logos // TODO: Add wallet logos
return ( return (
<Dialog title="Connect Ethereum Wallet"> <Dialog title="Connect Ethereum Wallet">

View File

@ -71,10 +71,10 @@ const Link = styled(NavLink, {
right: 8, right: 8,
width: 22, width: 22,
height: 22, height: 22,
background: '#4360DF', background: '$primary-1',
borderRadius: '$full', borderRadius: '$full',
fontSize: 12, fontSize: 12,
color: '#fff', color: '$accent-11',
}, },
}, },
}, },

View File

@ -75,7 +75,7 @@ const Wrapper = styled('div', {
const Bubble = styled('div', { const Bubble = styled('div', {
width: '100%', width: '100%',
background: '#EEF2F5', background: '$gray-2',
borderRadius: '16px 16px 4px 16px;', borderRadius: '16px 16px 4px 16px;',
padding: 2, padding: 2,
overflow: 'hidden', overflow: 'hidden',
@ -86,7 +86,7 @@ const InputWrapper = styled('div', {
height: 40, height: 40,
width: '100%', width: '100%',
alignItems: 'center', alignItems: 'center',
background: '#EEF2F5', background: '$gray-2',
padding: '0 0 0 12px', padding: '0 0 0 12px',
}) })

View File

@ -116,7 +116,7 @@ const Wrapper = styled('div', {
right: 16, right: 16,
padding: 2, padding: 2,
boxShadow: '0px 4px 12px rgba(0, 34, 51, 0.08)', boxShadow: '0px 4px 12px rgba(0, 34, 51, 0.08)',
background: '#fff', background: '$background',
borderRadius: 8, borderRadius: 8,
display: 'none', display: 'none',

View File

@ -77,7 +77,7 @@ const Wrapper = styled('div', {
height: '100%', height: '100%',
display: 'flex', display: 'flex',
alignItems: 'stretch', alignItems: 'stretch',
background: '#fff', background: '$background',
maxWidth: '100%', maxWidth: '100%',
minWidth: 1, minWidth: 1,
}) })

View File

@ -9,8 +9,6 @@ interface Props {
const EmojiHash = (props: Props) => { const EmojiHash = (props: Props) => {
const { name } = props const { name } = props
console.log(name)
return ( return (
<Base> <Base>
🎩🍞🥑🦍🌈📡 🎩🍞🥑🦍🌈📡

View File

@ -9,7 +9,7 @@ import { Icon } from '../icon'
const Content = styled('div', { const Content = styled('div', {
minWidth: 176, minWidth: 176,
padding: '8px 0', padding: '8px 0',
background: theme.colors.white, background: '$background',
borderRadius: theme.radii[8], borderRadius: theme.radii[8],
boxShadow: boxShadow:
'0px 2px 4px rgba(0, 34, 51, 0.16), 0px 4px 12px rgba(0, 34, 51, 0.08)', '0px 2px 4px rgba(0, 34, 51, 0.16), 0px 4px 12px rgba(0, 34, 51, 0.08)',
@ -41,7 +41,7 @@ const ItemBase = styled('div', {
height: 34, height: 34,
fontSize: 13, fontSize: 13,
lineHeight: 1, lineHeight: 1,
color: '#000', color: '$accent-1',
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
gap: 6, gap: 6,
@ -51,7 +51,7 @@ const ItemBase = styled('div', {
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
'&:focus, &[aria-selected="true"], &[aria-expanded="true"]': { '&:focus, &[aria-selected="true"], &[aria-expanded="true"]': {
backgroundColor: '#EEF2F5', backgroundColor: '$gray-2',
}, },
'&[data-disabled]': { '&[data-disabled]': {
@ -59,15 +59,15 @@ const ItemBase = styled('div', {
}, },
svg: { svg: {
color: '#4360DF', color: '$primary-1',
}, },
variants: { variants: {
danger: { danger: {
true: { true: {
color: '#FF2D55', color: '$danger-1',
svg: { svg: {
color: '#FF2D55', color: '$danger-1',
}, },
}, },
}, },
@ -98,7 +98,7 @@ const TriggerItemIcon = styled('div', {
const Separator = styled('div', { const Separator = styled('div', {
height: 1, height: 1,
background: '#F0F2F5', background: '$gray-5',
margin: '5px 0', margin: '5px 0',
}) })

View File

@ -5,7 +5,7 @@ export const Base = styled('input', {
lineHeight: 1.2, lineHeight: 1.2,
fontSize: '15px', fontSize: '15px',
padding: '10px 16px', padding: '10px 16px',
background: '#EEF2F5', background: '$gray-2',
borderRadius: 8, borderRadius: 8,
height: 44, height: 44,
width: '100%', width: '100%',
@ -14,7 +14,7 @@ export const Base = styled('input', {
justifyContent: 'center', justifyContent: 'center',
'&::placeholder': { '&::placeholder': {
color: '#939BA1', color: '$gray-1',
}, },
'&:focus': { '&:focus': {

View File

@ -28,8 +28,8 @@ export const Content = styled(Primitive.Content, {
fontSize: 13, fontSize: 13,
padding: 8, padding: 8,
lineHeight: 1, lineHeight: 1,
backgroundColor: '#000', backgroundColor: '$accent-1',
color: '#fff', color: '$accent-11',
borderRadius: 8, borderRadius: 8,
'@media (prefers-reduced-motion: no-preference)': { '@media (prefers-reduced-motion: no-preference)': {
@ -59,5 +59,5 @@ export const Content = styled(Primitive.Content, {
}) })
export const Arrow = styled(Primitive.Arrow, { export const Arrow = styled(Primitive.Arrow, {
fill: '#000', fill: '$accent-1',
}) })