# Shopify/restyle

A type-enforced system for building UI components in React Native with TypeScript.

Repository: https://github.com/Shopify/restyle
Canonical: https://ross.abutalabs.com/products/restyle
Homepage: https://shopify.github.io/restyle/
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-02-09T08:19:48+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 66, release rhythm 8, longevity 100
- inputs: {"age_days": 2553, "days_push": 205, "days_rel": 532, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3399, forks 144 (observed 2026-08-28T04:08:02.750102+00:00)

## What it is
Restyle is a type-enforced styling system for building UI components in React Native with TypeScript, focused on themability and design-system consistency. It provides utilities like createBox, createText, and variants for building themed component libraries.

## Use cases
- build a themed design system for a React Native app
- enforce consistent spacing and colors in React Native components
- create type-safe UI component libraries in TypeScript
- support dark mode and theme switching in React Native
- define reusable component variants like card styles
- replace ad-hoc inline styles with a structured styling system

## When to choose
- you are building a React Native app or component library on a defined design system
- you want compile-time type safety for style props and theme values
- you need themability, responsive breakpoints, and variants out of the box

## When to avoid
- you are building for the web rather than React Native
- your project has no design system and you prefer free-form styling
- you need a full prebuilt component kit rather than a styling foundation

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, css-framework, frontend-framework, theme
- domain: mobile-development, frontend, web-design, cross-platform
- platform: -
- tags: react-native, design-system, theming, typescript, styled-system-inspired, ui-library, mobile, ios, android

## Member repositories
- Shopify/restyle (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:02.750102+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-29T18:38:46.552521+00:00, confidence not recorded.
  - readme: https://github.com/Shopify/restyle (fetched 2026-08-28T04:08:02.750102+00:00, sha 3d23bf83346c)
  - homepage: https://shopify.github.io/restyle/ (fetched 2026-08-29T09:32:52.680898+00:00, sha b9e3965e089a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
