Skip to content

Commit

Permalink
Add tag styling to theme (#133)
Browse files Browse the repository at this point in the history
* Add brand colors to theme

* add default tag styles

* lint and move tags
  • Loading branch information
LenaNguyen authored Feb 8, 2022
1 parent e6caea1 commit 76a4d60
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/pages/Default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const DesignSystemDisplay = () => {
},
].map((style, index) => (
<Tag
bg={style.backgroundColor}
bgColor={style.backgroundColor}
color={style.textColor}
size="lg"
key={index}
Expand Down Expand Up @@ -196,6 +196,9 @@ const DesignSystemDisplay = () => {
<ChakraButton variant="link" isDisabled>
Link Disabled
</ChakraButton>
<br />
<Tag>Default Tag</Tag>
<Tag variant="outline">Outline Tag</Tag>
<Tabs>
<TabList>
<Tab>Tab 1</Tab>
Expand Down
16 changes: 16 additions & 0 deletions frontend/src/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,22 @@ const customTheme = extendTheme(
textStyle: "caption",
},
},
variants: {
subtle: {
container: {
backgroundColor: "green.light",
color: "green.dark",
borderRadius: "full",
},
},
outline: {
container: {
color: "text.gray",
boxShadow: `inset 0 0 0px 1px ${colors.text.gray}`,
borderRadius: "full",
},
},
},
},
Button: {
baseStyle: {
Expand Down

0 comments on commit 76a4d60

Please sign in to comment.