# styled-components/css-to-react-native

Convert CSS text to a React Native stylesheet object

Repository: https://github.com/styled-components/css-to-react-native
Canonical: https://ross.abutalabs.com/products/css-to-react-native
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-03-30T09:45:52+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 74, release rhythm 8, longevity 100
- inputs: {"age_days": 3584, "days_push": 156, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1178, forks 82 (observed 2026-08-28T04:03:52.894460+00:00)

## What it is
A TypeScript library that converts CSS text into React Native stylesheet objects, handling camelCase conversion, shorthand expansion, and value transformations. It is used by styled-components and can be used standalone to translate CSS declarations into React Native-compatible style objects.

## Use cases
- convert css text to react native stylesheet object
- expand css shorthand properties like margin and font for react native
- transform kebab-case css properties to camelcase react native styles
- reuse existing css styles in a react native app
- parse css declarations into javascript style objects

## When to choose
- you need to translate CSS strings or shorthand into React Native style objects programmatically
- you are building tooling or styling libraries on top of React Native and need CSS parsing
- you want to migrate or share styles between web CSS and React Native

## When to avoid
- you need full CSS support including selectors, media queries, or border-side shorthands
- you are styling web apps rather than React Native
- you need runtime CSS cascade features rather than static style conversion

## Facets
- artifact type: library
- maturity: active
- function: parser, serialization
- domain: mobile-development, frontend, web-development
- platform: -
- tags: css, react-native, stylesheet-conversion, styled-components, typescript, nodejs, javascript

## Member repositories
- styled-components/css-to-react-native (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:52.894460+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:26:08.788670+00:00, confidence not recorded.
  - readme: https://github.com/styled-components/css-to-react-native (fetched 2026-08-28T04:03:52.894460+00:00, sha feeba7a50042)
  - registry_npm: https://registry.npmjs.org/css-to-react-native (fetched 2026-08-29T12:32:38.919440+00:00, sha 3d40536edcf3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
