{"id":15562702,"url":"https://github.com/mym0404/react-native-styled-system","last_synced_at":"2026-02-13T13:14:44.238Z","repository":{"id":227191382,"uuid":"770724422","full_name":"mym0404/react-native-styled-system","owner":"mym0404","description":"React Native styled-system mimic","archived":false,"fork":false,"pushed_at":"2026-02-12T16:11:06.000Z","size":29630,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-02-12T20:12:29.518Z","etag":null,"topics":["css","react","react-native","styled-component","styled-system","theme"],"latest_commit_sha":null,"homepage":"https://mym0404.github.io/react-native-styled-system/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mym0404.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["mym0404"]}},"created_at":"2024-03-12T03:31:19.000Z","updated_at":"2026-02-12T16:19:18.000Z","dependencies_parsed_at":"2024-03-25T01:30:54.038Z","dependency_job_id":"9f2f6870-de7e-4bac-9a05-78c89b2398fe","html_url":"https://github.com/mym0404/react-native-styled-system","commit_stats":null,"previous_names":["mj-studio-library/react-native-styled-system","mym0404/react-native-styled-system"],"tags_count":55,"template":false,"template_full_name":null,"purl":"pkg:github/mym0404/react-native-styled-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mym0404%2Freact-native-styled-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mym0404%2Freact-native-styled-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mym0404%2Freact-native-styled-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mym0404%2Freact-native-styled-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mym0404","download_url":"https://codeload.github.com/mym0404/react-native-styled-system/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mym0404%2Freact-native-styled-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29400512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["css","react","react-native","styled-component","styled-system","theme"],"created_at":"2024-10-02T16:15:58.622Z","updated_at":"2026-02-13T13:14:44.230Z","avatar_url":"https://github.com/mym0404.png","language":"TypeScript","funding_links":["https://github.com/sponsors/mym0404"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://mym0404.github.io/react-native-styled-system/\"\u003e\n    \u003cimg width=\"160px\" src=\"https://raw.githubusercontent.com/mym0404/image-archive/master/202404261501218.webp\"\u003e\u003cbr/\u003e\n  \u003c/a\u003e\n  \u003ch1 align=\"center\"\u003eReact Native Styled System\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@react-native-styled-system/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@react-native-styled-system/core.svg?style=flat-square\" alt=\"NPM downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@react-native-styled-system/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@react-native-styled-system/core.svg?style=flat-square\" alt=\"NPM version\"\u003e\u003c/a\u003e\n  \u003ca href=\"/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@react-native-styled-system/core.svg?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ch3 align=\"center\"\u003eDeadly Simple Style Library\u003c/h3\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n---\n\nToken-driven styling for React Native. Pass design tokens as props, resolve them from a centralized theme, and ship consistent UI faster.\n\n## Install\n\n```\nyarn add @react-native-styled-system/core @react-native-styled-system/util\n```\n\n## Why\n\nTypical React Native styling requires manually referencing theme values everywhere:\n\n```tsx\nconst Sample = () =\u003e {\n  const theme = useTheme();\n\n  return (\n    \u003cView style={{\n      backgroundColor: theme.colors['red.500'],\n      borderRadius: theme.radii.lg,\n    }}\u003e\n      \u003cText style={[theme.typography.h1, { marginTop: theme.spaces[4] }]}\u003e\n        React Native\n      \u003c/Text\u003e\n    \u003c/View\u003e\n  );\n};\n```\n\nWith Styled System, design tokens become props:\n\n```tsx\nconst Sample = () =\u003e {\n  return (\n    \u003cBox bg={'red.500'} radius={'lg'}\u003e\n      \u003cTxt t={'h1'} mt={4}\u003e\n        React Native\n      \u003c/Txt\u003e\n    \u003c/Box\u003e\n  );\n};\n```\n\n## What's New in v2.0\n\n- **Built-in design tokens** - Comprehensive color palette and semantic color tokens included as `defaultTheme`\n- **Semantic color generation** - `createThemeColors({ base, theme })` generates light/dark color sets automatically\n- **Theme utilities** - `createTheme()` for creating and merging themes with sensible defaults\n- **Responsive values** - Pass `[base, sm, md, lg]` arrays to any style prop for breakpoint-based styling\n\nSee the full [v2.0 release notes](https://mym0404.github.io/react-native-styled-system/docs/whats-new/v2) for details.\n\n## Features\n\n- Pass style props like `m`, `px`, `py`, `bg`, `flex`, `flexDirection`, `position` directly to components\n- All styles are cacheable, preventing unnecessary re-renders when values haven't changed\n- Define and deliver custom design systems through themes\n- Full TypeScript support via CLI-generated type augmentations\n- Inject logical or responsive values (e.g. `safeAreaTop`, `sidePadding`) into theme tokens\n- Text typography support\n- Dark theme integration\n\n## Quick Start\n\n**1. Wrap your app with the provider:**\n\n```tsx\nimport { StyledSystemProvider } from '@react-native-styled-system/core';\nimport { defaultTheme } from '@react-native-styled-system/util';\n\nconst App = () =\u003e (\n  \u003cStyledSystemProvider theme={defaultTheme}\u003e\n    {/* your app */}\n  \u003c/StyledSystemProvider\u003e\n);\n```\n\n**2. Create styled components:**\n\n```tsx\nimport { createSxComponent } from '@react-native-styled-system/core';\nimport { View, Text } from 'react-native';\n\nconst Box = createSxComponent(View);\nconst Txt = createSxTextComponent(Text);\n```\n\n**3. Use token props:**\n\n```tsx\n\u003cBox bg={'primary'} p={4} radius={'lg'}\u003e\n  \u003cTxt t={'h1'} color={'primary-foreground'}\u003e\n    Hello World\n  \u003c/Txt\u003e\n\u003c/Box\u003e\n```\n\n## Documentation\n\nFull documentation is available at [mym0404.github.io/react-native-styled-system](https://mym0404.github.io/react-native-styled-system/).\n\n## Contributing\n\nSee the [contributing guide](./CONTRIBUTING.md) for details.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmym0404%2Freact-native-styled-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmym0404%2Freact-native-styled-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmym0404%2Freact-native-styled-system/lists"}