diff --git a/src/theme/colors.ts b/src/theme/colors.ts index 50af1376..eefbe709 100644 --- a/src/theme/colors.ts +++ b/src/theme/colors.ts @@ -292,7 +292,9 @@ export const colors = { }, }, }, - + tag: { + border: colorsBase.gray.light, + }, radio: { bg: colorsBase.primary, border: colorsBase.primary, diff --git a/src/theme/components/tag.ts b/src/theme/components/tag.ts new file mode 100644 index 00000000..45b47d95 --- /dev/null +++ b/src/theme/components/tag.ts @@ -0,0 +1,15 @@ +import { tagAnatomy } from '@chakra-ui/anatomy' +import { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/react' + +const { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(tagAnatomy.keys) + +const baseStyle = definePartsStyle({ + container: { + borderRadius: 6, + border: '1px solid', + borderColor: 'tag.border', + width: 'fit-content', + }, +}) + +export const Tag = defineMultiStyleConfig({ baseStyle }) diff --git a/src/theme/index.ts b/src/theme/index.ts index ed0dc68e..6ef9657b 100644 --- a/src/theme/index.ts +++ b/src/theme/index.ts @@ -23,6 +23,7 @@ import { Text } from './components/text' import { Textarea } from './components/textarea' import { editor } from './editor' import { spacing } from './space' +import { Tag } from './components/tag' export const theme = extendTheme(vtheme, { config: { @@ -95,6 +96,7 @@ export const theme = extendTheme(vtheme, { Radio, Stepper, Tabs, + Tag, Text, Textarea, },