{"schemaVersion":1,"id":"restyle","name":"Restyle","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/restyle/","officialUrl":"https://github.com/shopify/restyle","isCatalog":false,"description":"A TypeScript library of theme-driven React Native components: it connects sizes, colors, and variants to a typed design system.","tasks":["Type a mobile theme and component variants","Connect typed styled components to a React Native screen"],"categoryIds":["apps","frontend"],"subcategoryIds":["apps.reactnative","frontend.components"],"tags":["Restyle","mobile","Development"],"aliases":["shopify/restyle","restyle-react-native","react-native-restyle"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Type a mobile theme and component variants","chooseWhen":["Type a mobile theme and component variants","Connect typed styled components to a React Native screen"],"considerInstead":[],"requirements":["Create a global theme with colors, spacing, and other tokens, and pass it to ThemeProvider."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","Restyle provides the foundation for a typed React Native design system; it is not a complete ready-made set of all screens and controls."],"faq":[{"question":"What can you use for free in Restyle?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Restyle?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Restyle?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with Restyle?","answer":"Define colors/spacing and theme-driven variants. Connect typed styled components to a React Native screen. Build the application and test the workflow on target devices."},{"question":"Why does backgroundColor accept a name rather than an arbitrary token?","answer":"Theme types let TypeScript accept only colors declared in your theme and suggest them in the editor. For example, define cardPrimaryBackground."},{"question":"What does createTheme do?","answer":"The function checks the BaseTheme structure and preserves your values' specific types. Pass the theme to ThemeProvider at the React tree root."}],"related":[],"sources":["https://github.com/shopify/restyle","https://raw.githubusercontent.com/shopify/restyle/HEAD/README.md","https://raw.githubusercontent.com/shopify/restyle/HEAD/LICENSE.md","https://www.open-source-tools.com/","https://shopify.github.io/restyle/fundamentals/defining-your-theme/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Type a mobile theme and component variants.","inputs":["A React Native project and target devices.","A design, data, and platform requirements."],"steps":["Define colors/spacing and theme-driven variants.","Connect typed styled components to a React Native screen.","Build the application and test the workflow on target devices."],"checks":["Behavior meets the project's iOS and Android requirements.","Check gestures, accessibility, and performance on the target device."]},"sources":["https://github.com/shopify/restyle","https://raw.githubusercontent.com/shopify/restyle/HEAD/README.md","https://raw.githubusercontent.com/shopify/restyle/HEAD/LICENSE.md","https://www.open-source-tools.com/","https://shopify.github.io/restyle/fundamentals/defining-your-theme/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"React Native / mobile development","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/shopify/restyle","label":"Official source"},{"url":"https://raw.githubusercontent.com/shopify/restyle/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/shopify/restyle/HEAD/LICENSE.md","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://shopify.github.io/restyle/fundamentals/defining-your-theme/","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}