{"id":13343870,"url":"https://github.com/zeplin/react-native-extension","last_synced_at":"2025-07-18T16:38:21.061Z","repository":{"id":53692466,"uuid":"119945580","full_name":"zeplin/react-native-extension","owner":"zeplin","description":"React Native JavaScript snippets from colors, text styles and layers ⚛️📱","archived":false,"fork":false,"pushed_at":"2021-05-27T05:50:22.000Z","size":712,"stargazers_count":68,"open_issues_count":3,"forks_count":14,"subscribers_count":28,"default_branch":"main","last_synced_at":"2025-05-19T17:11:36.356Z","etag":null,"topics":["react-native","zeplin","zeplin-extension"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeplin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-02T07:04:19.000Z","updated_at":"2024-07-29T00:38:10.000Z","dependencies_parsed_at":"2022-09-05T07:10:31.000Z","dependency_job_id":null,"html_url":"https://github.com/zeplin/react-native-extension","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/zeplin/react-native-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeplin%2Freact-native-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeplin%2Freact-native-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeplin%2Freact-native-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeplin%2Freact-native-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeplin","download_url":"https://codeload.github.com/zeplin/react-native-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeplin%2Freact-native-extension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264535989,"owners_count":23624404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react-native","zeplin","zeplin-extension"],"created_at":"2024-07-29T19:32:04.939Z","updated_at":"2025-07-10T05:30:46.443Z","avatar_url":"https://github.com/zeplin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zeplin React Native Extension\n\nGenerates React Native JavaScript snippets from colors, text styles and layers. ⚛️📱\n\n## Output\n\nSample colors output:\n```js\nconst colors = {\n  RED: \"#ff0000\",\n  GREEN: \"#00ff00\",\n  BLUE: \"#0000ff\",\n  YELLOW: \"#ffff00\",\n  BLACK: \"#000000\",\n  BLACK_50: \"rgba(0, 0, 0, 0.5)\",\n  WHITE: \"#ffffff\"\n};\n```\n\nSample text style output:\n```js\nconst textStyles = StyleSheet.create({\n  SAMPLE_TEXT_STYLE: {\n    fontFamily: \"SFProText\",\n    fontSize: 20,\n    fontWeight: \"normal\",\n    fontStyle: \"normal\",\n    letterSpacing: 0,\n    textAlign: \"left\"\n  },\n  SAMPLE_TEXT_STYLE_WITH_COLOR: {\n    fontFamily: \"SFProText\",\n    fontSize: 20,\n    fontWeight: \"normal\",\n    fontStyle: \"normal\",\n    letterSpacing: 0,\n    textAlign: \"left\",\n    color: colors.RED\n  }\n});\n```\n\nSample layer output:\n```js\nconst layerWithShadow = {\n  width: 100,\n  height: 100,\n  shadowColor: colors.black50,\n  shadowOffset: {\n    width: 0,\n    height: 2\n  },\n  shadowRadius: 4,\n  shadowOpacity: 1\n};\n```\n\n## Options\n\n#### Color format\n\nSupports HEX, RGB or HSL. Sample colors output as HSL:\n```js\nconst colors = {\n  RED: \"hsl(0, 100%, 50%)\",\n  BLACK_50: \"hsla(0, 0%, 0%, 0.5)\"\n};\n```\n\n#### Token name format\n\nFormats the name of colors and text styles. Supports constant case, snake case, camel case, pascal case or no format. Sample colors output as no format:\n```js\nconst colors = {\n  red: \"#ff0000\",\n  \"black 50\": \"rgba(0, 0, 0, 0.5)\",\n};\n```\n\n#### Dimensions\n\nToggles generating `width` and `height` properties from layers.\n\n#### Default values\n\nToggles always generating default values from layers or text styles, such as `fontWeight` and `fontStyle`.\n\n## Development\n\nReact Native extension is developed using [zem](https://github.com/zeplin/zem), Zeplin Extension Manager. zem is a command line tool that lets you quickly create and test extensions.\n\nTo learn more about zem, [see documentation](https://github.com/zeplin/zem).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeplin%2Freact-native-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeplin%2Freact-native-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeplin%2Freact-native-extension/lists"}