Skip to content

Commit

Permalink
fix(theme): updated Avatar fallback bg color
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Dec 26, 2023
1 parent 811d88b commit c382711
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-pianos-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@yamada-ui/theme": patch
---

Updated fallback background color of `Avatar`.
6 changes: 4 additions & 2 deletions packages/theme/src/components/avatar.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import type { ComponentMultiStyle } from "@yamada-ui/core"
import { mode, type ComponentMultiStyle } from "@yamada-ui/core"
import { getMemoizedObject as get, isDark, randomColor } from "@yamada-ui/utils"

export const Avatar: ComponentMultiStyle = {
baseStyle: {
group: {},
container: ({ theme: t, colorMode: m, name: string }) => {
const bg = string ? randomColor({ string }) : "blackAlpha.600"
const bg = string
? randomColor({ string })
: mode("gray.200", "gray.500")(m)

return {
bg,
Expand Down

0 comments on commit c382711

Please sign in to comment.