Skip to content

feat(react-native): add style-guide.json and Stitch API reference#65

Open
ademakdogan wants to merge 1 commit into
google-labs-code:mainfrom
ademakdogan:feat/react-native-extras
Open

feat(react-native): add style-guide.json and Stitch API reference#65
ademakdogan wants to merge 1 commit into
google-labs-code:mainfrom
ademakdogan:feat/react-native-extras

Conversation

@ademakdogan
Copy link
Copy Markdown

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-native skill 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. Brings react-native to parity with the sibling react-components skill, which already ships a style guide.
  • resources/stitch-api-reference.md — documents the get_screen metadata schema and React Native-specific mapping rules (density-independent sizing via useWindowDimensions/Dimensions, asset handling through mockData.ts, and mapping the HTML tailwind.config into the style guide / theme.ts rather 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.

… 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant