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} {children}
<Spacer /> <Spacer />
{badges?.map((b, i) => ( {badges?.map((b, i) => (
<InvBadge <InvBadge key={`${b}.${i}`} colorScheme="blue">
key={`${b}.${i}`}
variant="solid"
background="blue.400"
fontSize={10}
fontWeight={800}
>
{b} {b}
</InvBadge> </InvBadge>
))} ))}

View File

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

View File

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