Commit 67fb2313 authored by isstuev's avatar isstuev

gray to black alpha for better transition

parent 420bfd15
...@@ -19,7 +19,7 @@ const baseStylePopper = defineStyle({ ...@@ -19,7 +19,7 @@ const baseStylePopper = defineStyle({
const baseStyleContent = defineStyle((props) => { const baseStyleContent = defineStyle((props) => {
const bg = mode('white', 'gray.900')(props); const bg = mode('white', 'gray.900')(props);
const shadowColor = mode('gray.200', 'whiteAlpha.300')(props); const shadowColor = mode('blackAlpha.200', 'whiteAlpha.300')(props);
return { return {
[$popperBg.variable]: `colors.${ bg }`, [$popperBg.variable]: `colors.${ bg }`,
......
...@@ -15,7 +15,7 @@ const variantSimple = definePartsStyle((props) => { ...@@ -15,7 +15,7 @@ const variantSimple = definePartsStyle((props) => {
return { return {
th: { th: {
border: 0, border: 0,
color: mode('gray.600', 'whiteAlpha.700')(props), color: mode('blackAlpha.700', 'whiteAlpha.700')(props),
backgroundColor: mode('blackAlpha.100', 'whiteAlpha.200')(props), backgroundColor: mode('blackAlpha.100', 'whiteAlpha.200')(props),
...transitionProps, ...transitionProps,
}, },
......
...@@ -24,7 +24,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) { ...@@ -24,7 +24,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) {
}, },
_disabled: { _disabled: {
opacity: 1, opacity: 1,
backgroundColor: mode('gray.200', 'whiteAlpha.200')(props), backgroundColor: mode('blackAlpha.200', 'whiteAlpha.200')(props),
borderColor: 'transparent', borderColor: 'transparent',
cursor: 'not-allowed', cursor: 'not-allowed',
_hover: { _hover: {
......
...@@ -36,7 +36,7 @@ const LatestBlocksItem = ({ block, h }: Props) => { ...@@ -36,7 +36,7 @@ const LatestBlocksItem = ({ block, h }: Props) => {
transitionTimingFunction="linear" transitionTimingFunction="linear"
borderRadius="12px" borderRadius="12px"
border="1px solid" border="1px solid"
borderColor={ useColorModeValue('gray.200', 'whiteAlpha.200') } borderColor={ useColorModeValue('blackAlpha.200', 'whiteAlpha.200') }
p={ 6 } p={ 6 }
h={ `${ h }px` } h={ `${ h }px` }
minWidth={{ base: '100%', lg: '280px' }} minWidth={{ base: '100%', lg: '280px' }}
......
...@@ -15,7 +15,7 @@ const LatestBlocksItemSkeleton = () => { ...@@ -15,7 +15,7 @@ const LatestBlocksItemSkeleton = () => {
minWidth={{ base: '100%', lg: '280px' }} minWidth={{ base: '100%', lg: '280px' }}
borderRadius="12px" borderRadius="12px"
border="1px solid" border="1px solid"
borderColor={ useColorModeValue('gray.200', 'whiteAlpha.200') } borderColor={ useColorModeValue('blackAlpha.200', 'whiteAlpha.200') }
p={ 6 } p={ 6 }
> >
<Flex justifyContent="space-between" alignItems="center" mb={ 3 }> <Flex justifyContent="space-between" alignItems="center" mb={ 3 }>
......
...@@ -37,7 +37,7 @@ type Props = { ...@@ -37,7 +37,7 @@ type Props = {
} }
const LatestBlocksItem = ({ tx }: Props) => { const LatestBlocksItem = ({ tx }: Props) => {
const borderColor = useColorModeValue('gray.200', 'whiteAlpha.200'); const borderColor = useColorModeValue('blackAlpha.200', 'whiteAlpha.200');
const iconColor = useColorModeValue('blue.600', 'blue.300'); const iconColor = useColorModeValue('blue.600', 'blue.300');
const dataTo = tx.to ? tx.to : tx.created_contract; const dataTo = tx.to ? tx.to : tx.created_contract;
......
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
import React from 'react'; import React from 'react';
const LatestTxsItemSkeleton = () => { const LatestTxsItemSkeleton = () => {
const borderColor = useColorModeValue('gray.200', 'whiteAlpha.200'); const borderColor = useColorModeValue('blackAlpha.200', 'whiteAlpha.200');
return ( return (
<Box <Box
......
...@@ -12,7 +12,7 @@ export default function useColors() { ...@@ -12,7 +12,7 @@ export default function useColors() {
active: useColorModeValue('blue.50', 'gray.800'), active: useColorModeValue('blue.50', 'gray.800'),
}, },
border: { border: {
'default': useColorModeValue('gray.200', 'whiteAlpha.200'), 'default': useColorModeValue('blackAlpha.200', 'whiteAlpha.200'),
active: useColorModeValue('blue.50', 'gray.800'), active: useColorModeValue('blue.50', 'gray.800'),
}, },
}; };
......
...@@ -7,7 +7,7 @@ export default function useColors({ hasIcon }: {hasIcon: boolean}) { ...@@ -7,7 +7,7 @@ export default function useColors({ hasIcon }: {hasIcon: boolean}) {
return { return {
text: { text: {
'default': useColorModeValue('gray.600', 'gray.400'), 'default': useColorModeValue('gray.600', 'gray.400'),
active: useColorModeValue('gray.700', 'whiteAlpha.900'), active: useColorModeValue('blackAlpha.900', 'whiteAlpha.900'),
hover: useColorModeValue('blue.600', 'blue.400'), hover: useColorModeValue('blue.600', 'blue.400'),
}, },
icon: { icon: {
...@@ -19,7 +19,7 @@ export default function useColors({ hasIcon }: {hasIcon: boolean}) { ...@@ -19,7 +19,7 @@ export default function useColors({ hasIcon }: {hasIcon: boolean}) {
active: useColorModeValue('blue.50', 'gray.800'), active: useColorModeValue('blue.50', 'gray.800'),
}, },
border: { border: {
'default': useColorModeValue('gray.200', 'whiteAlpha.200'), 'default': useColorModeValue('blackAlpha.200', 'whiteAlpha.200'),
active: useColorModeValue('blue.50', 'gray.800'), active: useColorModeValue('blue.50', 'gray.800'),
}, },
}; };
......
...@@ -12,8 +12,8 @@ type Props = UserInfo; ...@@ -12,8 +12,8 @@ type Props = UserInfo;
const ProfileMenuContent = ({ name, nickname, email }: Props) => { const ProfileMenuContent = ({ name, nickname, email }: Props) => {
const { accountNavItems, profileItem } = useNavItems(); const { accountNavItems, profileItem } = useNavItems();
const borderColor = useColorModeValue('gray.200', 'whiteAlpha.200'); const borderColor = useColorModeValue('blackAlpha.200', 'whiteAlpha.200');
const primaryTextColor = useColorModeValue('gray.600', 'whiteAlpha.800'); const primaryTextColor = useColorModeValue('blackAlpha.800', 'whiteAlpha.800');
return ( return (
<Box> <Box>
......
...@@ -12,7 +12,7 @@ import TextSeparator from 'ui/shared/TextSeparator'; ...@@ -12,7 +12,7 @@ import TextSeparator from 'ui/shared/TextSeparator';
import Utilization from 'ui/shared/Utilization/Utilization'; import Utilization from 'ui/shared/Utilization/Utilization';
const TxAdditionalInfo = ({ tx }: { tx: Transaction }) => { const TxAdditionalInfo = ({ tx }: { tx: Transaction }) => {
const sectionBorderColor = useColorModeValue('gray.200', 'whiteAlpha.200'); const sectionBorderColor = useColorModeValue('blackAlpha.200', 'whiteAlpha.200');
const sectionProps = { const sectionProps = {
borderBottom: '1px solid', borderBottom: '1px solid',
borderColor: sectionBorderColor, borderColor: sectionBorderColor,
......
...@@ -72,7 +72,7 @@ const TxsFilters = ({ onFiltersChange, filters, appliedFiltersNum }: Props) => { ...@@ -72,7 +72,7 @@ const TxsFilters = ({ onFiltersChange, filters, appliedFiltersNum }: Props) => {
onClose(); onClose();
}, [ onClose, onFiltersChange, typeFilter, methodFilter ]); }, [ onClose, onFiltersChange, typeFilter, methodFilter ]);
const borderColor = useColorModeValue('gray.200', 'whiteAlpha.200'); const borderColor = useColorModeValue('blackAlpha.200', 'whiteAlpha.200');
return ( return (
<Popover isOpen={ isOpen } onClose={ onClose } placement="bottom-start" isLazy> <Popover isOpen={ isOpen } onClose={ onClose } placement="bottom-start" isLazy>
......
...@@ -68,7 +68,7 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement } ...@@ -68,7 +68,7 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement }
</Address> </Address>
); );
const infoBorderColor = useColorModeValue('gray.200', 'whiteAlpha.200'); const infoBorderColor = useColorModeValue('blackAlpha.200', 'whiteAlpha.200');
return ( return (
<Tr> <Tr>
<Td pl={ 4 }> <Td pl={ 4 }>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment