feat(theme types): generate theme types and bundle into dist for consumption#995
Draft
ByronDWall wants to merge 6 commits intomainfrom
Draft
feat(theme types): generate theme types and bundle into dist for consumption#995ByronDWall wants to merge 6 commits intomainfrom
ByronDWall wants to merge 6 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
…index so they are included in the import chain and we do not need to add build-time steps
ce27268 to
c632da6
Compare
jaikamat
approved these changes
Jan 30, 2026
Contributor
jaikamat
left a comment
There was a problem hiding this comment.
Thank you for the help! Super clean
stephsprinkle
approved these changes
Jan 30, 2026
tylermorrisford
approved these changes
Jan 30, 2026
0e33bb6 to
683a0c8
Compare
683a0c8 to
884a298
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces automated generation and inclusion of Chakra UI type augmentations for the Nimbus theme, ensuring that consumers of the package get full TypeScript support for custom recipes, tokens, and conditions without needing to run typegen themselves. The changes streamline the process by adding a new script, updating build commands, and ensuring the generated types are shipped with the package.
Type augmentation automation and integration:
scripts/generate-chakra-types.tsthat runs Chakra's typegen, transforms the output into module augmentation declarations, and writes them tosrc/theme/chakra-types.gen.d.ts. This script ensures that Nimbus's custom theme types are automatically generated and bundled.build-theme-typingscommand inpackage.jsonto use the new script viatsx, replacing the previous Chakra CLI invocation.copyDtsFiles: truein the Vite config, ensuring consumers receive the typings in the published package.Type support for consumers:
chakra-types.gen.d.tsinsrc/theme/index.tsso that the augmentations are available to TypeScript consumers of the Nimbus theme.Tooling improvements:
tsxas a dev dependency inpackage.jsonto support running TypeScript scripts directly.