Skip to content

Commit

Permalink
docs: correctly spread default theme colors (#4110)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvasilchuk authored Oct 5, 2023
1 parent 6b05c12 commit d698282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/guides/02-theming.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ const theme = {
...DefaultTheme,
// Specify custom property
myOwnProperty: true,
...DefaultTheme.colors,
// Specify custom property in nested object
colors: {
...DefaultTheme.colors,
myOwnColor: '#BADA55',
},
};
Expand Down

0 comments on commit d698282

Please sign in to comment.