shopify/restyle

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 49 minutes ago
Added to GitGenius on September 20th, 2026
Created on September 6th, 2019
Open Issues & Pull Requests: 40 (+0)
GitHub issues: Enabled
Number of forks: 151
Total Stargazers: 3,421 (+0)
Total Subscribers: 230 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 7
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 745 days
Stale 30+ days: 6
Stale 90+ days: 6

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (7)

Most active issues this week

Detailed Description

Restyle is a type-enforced system for building UI components in React Native with TypeScript.

The library solves the problem of maintaining consistency across a themed UI by anchoring component styling to a design system's foundational values—colors, spacing, and other constants. Rather than allowing arbitrary style values throughout an application, Restyle enforces that components draw from a predefined theme, with TypeScript providing compile-time safety. The system acknowledges that exceptions will occur and permits style overrides when necessary, but keeps developers most productive when one-off values remain minimal.

Teams building React Native applications with a design system should consider Restyle if they want type safety and consistency enforced at the component level. It is designed as a library for building UI libraries rather than for direct application use, making it most suitable for organizations creating reusable component systems. The tool is inspired by styled-system, sharing a similar philosophy of constraint-based styling.

The project maintains active documentation with a dedicated site and includes a fixture application demonstrating usage patterns. A migration guide exists for teams moving to a major version update. The repository includes contribution guidelines and a code of conduct, indicating structured community engagement.