feat(ui): make badges a bit paler

too stabby in the eye region
This commit is contained in:
psychedelicious 2024-01-04 15:32:46 +11:00 committed by Kent Keirsey
parent 49a72bd714
commit afad764a00
3 changed files with 4 additions and 15 deletions

View File

@ -21,13 +21,7 @@ export const InvAccordionButton = (props: InvAccordionButtonProps) => {
{children}
<Spacer />
{badges?.map((b, i) => (
<InvBadge
key={`${b}.${i}`}
variant="solid"
background="blue.400"
fontSize={10}
fontWeight={800}
>
<InvBadge key={`${b}.${i}`} colorScheme="blue">
{b}
</InvBadge>
))}

View File

@ -1,13 +1,13 @@
import { defineStyle, defineStyleConfig } from '@chakra-ui/react';
const baseStyle = defineStyle((props) => ({
fontSize: '9px',
fontSize: 10,
px: 2,
py: 1,
minW: 4,
lineHeight: 1,
borderRadius: 'sm',
bg: `${props.colorScheme}.300`,
bg: `${props.colorScheme}.200`,
color: 'base.900',
fontWeight: 'bold',
letterSpacing: 0.5,
@ -20,7 +20,6 @@ const baseStyle = defineStyle((props) => ({
export const badgeTheme = defineStyleConfig({
baseStyle,
defaultProps: {
variant: 'solid',
colorScheme: 'base',
},
});

View File

@ -11,11 +11,7 @@ export const InvTab = memo(
<ChakraTab ref={ref} {...rest}>
{children}
<Spacer />
{badges?.map((b, i) => (
<InvBadge key={`${b}.${i}`} colorScheme="blue">
{b}
</InvBadge>
))}
{badges?.map((b, i) => <InvBadge key={`${b}.${i}`} colorScheme='invokeYellow'>{b}</InvBadge>)}
</ChakraTab>
);
})