feat(react-native): add style-guide.json and Stitch API reference#65
Open
ademakdogan wants to merge 1 commit into
Open
feat(react-native): add style-guide.json and Stitch API reference#65ademakdogan wants to merge 1 commit into
ademakdogan wants to merge 1 commit into
Conversation
… reference Adds two follow-up resources to the react-native skill, complementing the existing build skills: - resources/style-guide.json: starter design tokens (colors, spacing, typography, border radii) using React Native-friendly numeric units, so extracted Stitch values map to a theme instead of hardcoded styles. - resources/stitch-api-reference.md: documents the get_screen metadata schema and React Native-specific mapping rules (density-independent sizing, asset handling, theme extraction over Tailwind merging). SKILL.md references both resources from the retrieval and color-extraction steps so they are part of the generation flow.
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.
Follow-up to #47 (closed as a duplicate of #42). As suggested by @davideast in that thread, this adds the extra resources on top of the merged
react-nativeskill rather than duplicating the core skill.What this adds
resources/style-guide.json— starter design tokens (colors, spacing, typography, border radii) using React Native-friendly numeric units. Gives the skill a concrete target to sync extracted Stitch values into, instead of hardcoding styles. Bringsreact-nativeto parity with the siblingreact-componentsskill, which already ships a style guide.resources/stitch-api-reference.md— documents theget_screenmetadata schema and React Native-specific mapping rules (density-independent sizing viauseWindowDimensions/Dimensions, asset handling throughmockData.ts, and mapping the HTMLtailwind.configinto the style guide /theme.tsrather than merging a web config).SKILL.md wiring
Both resources are referenced from
SKILL.md(the retrieval step points to the API reference; the color-extraction step points to the style guide) so they are part of the generation flow rather than orphaned files.No changes to the core skill behavior, scripts, or existing resources.