Skip to content

Commit

Permalink
refactor(theme): simplified color assignment in mark component
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Nov 3, 2023
1 parent 9ab78fe commit 749b2ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-ties-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@yamada-ui/theme': patch
---

Simplified color assignment in `Mark` component.
5 changes: 1 addition & 4 deletions packages/theme/src/components/mark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export const Mark: ComponentStyle = {
}
},
'text-accent': ({ theme: t, colorMode: m, colorScheme: c = 'gray' }) => ({
color: [
getColor(`${c}.500`)(t, m),
transparentizeColor(`${c}.200`, 0.8)(t, m),
],
color: [`${c}.500`, transparentizeColor(`${c}.200`, 0.8)(t, m)],
p: 0,
}),
unstyled: {
Expand Down

0 comments on commit 749b2ca

Please sign in to comment.