Skip to content

Commit

Permalink
applied figma styles, closes #851
Browse files Browse the repository at this point in the history
  • Loading branch information
gerouvi committed Nov 28, 2024
1 parent c252b71 commit 4452684
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/theme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ export const colors = {
},
},
},

tag: {
border: colorsBase.gray.light,
},
radio: {
bg: colorsBase.primary,
border: colorsBase.primary,
Expand Down
15 changes: 15 additions & 0 deletions src/theme/components/tag.ts
Original file line number Diff line number Diff line change
@@ -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 })
2 changes: 2 additions & 0 deletions src/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -95,6 +96,7 @@ export const theme = extendTheme(vtheme, {
Radio,
Stepper,
Tabs,
Tag,
Text,
Textarea,
},
Expand Down

0 comments on commit 4452684

Please sign in to comment.