Skip to content

Commit

Permalink
feat: defaults for skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Mar 2, 2021
1 parent e35a8e4 commit f8f5b67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/skeleton/src/skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ export default function Skelton(props: Props) {
boxHeight,
colorMode = 'dark',
colors = colorMode === 'dark' ? defaultDarkColors : defaultLightColors,
backgroundColor = 'rgb(51, 51, 51, 50)',
backgroundColor = colors[1] ??
colors[0] ??
baseColors[colorMode]?.secondary,
disableExitAnimation,
} = props

Expand Down

0 comments on commit f8f5b67

Please sign in to comment.