Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(extend-theme): allow nested theme colors #3150

Merged
merged 1 commit into from Jan 26, 2021

Conversation

TimKolberger
Copy link
Contributor

Closes #3085

📝 Description

Add recursive TS type to allow deeply nested color objects in extendTheme

⛳️ Current behavior (updates)

Did not allow nested color objects.

🚀 New behavior

Now you can nest them as deep as it gets.

💣 Is this a breaking change (Yes/No):

No

@vercel
Copy link

vercel bot commented Jan 25, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/chakra-ui/chakra-ui/c0rga6hry
✅ Preview: https://chakra-ui-git-fix-nested-theme-colors.chakra-ui.now.sh

@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2021

🦋 Changeset detected

Latest commit: fa20838

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@chakra-ui/react Patch
@chakra-ui/test-utils Patch
chakra-cra Patch
gatsby-starter-default Patch
chakra-nextjs Patch
chakra-nextjs-ts Patch
@chakra-ui/props-docs Patch
@chakra-ui/docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@with-heart with-heart added the Topic: TypeScript 🤠 Issues or PR related to TypeScript label Jan 26, 2021
Copy link
Contributor

@with-heart with-heart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our TypeScript hero ❤️

@segunadebayo segunadebayo merged commit bf67fa2 into develop Jan 26, 2021
@segunadebayo segunadebayo deleted the fix/nested-theme-colors branch January 26, 2021 14:34
@github-actions github-actions bot mentioned this pull request Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: TypeScript 🤠 Issues or PR related to TypeScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support nested color objects.
3 participants