Tamagui is a style library and UI kit for React and React Native that targets both web and native platforms from a single codebase. It solves the performance and code-sharing gap between web and native React development, offering a typed superset of the React Native style API in approximately 24KB with no outside dependencies.
Unlike standard React Native style solutions, Tamagui ships an optimizing compiler that performs partial evaluation, tree flattening, hoisting, and dead-code elimination to produce atomic CSS on web and flattened native views — without requiring developers to change their code for each platform.
Developers write styles using inline props or the styled function from @tamagui/core, defining variants, tokens, and responsive breakpoints in a single declaration. The static optimizer — compatible with Next.js, Webpack, Vite, Babel, and Metro — then analyses the code at build time, extracts atomic CSS classes, and outputs flattened DOM elements on web or View/Text components on native. At runtime, theme tokens resolve like CSS variables and cascade down through sub-themes without triggering re-renders.
Tamagui suits teams building universal React applications who need verifiably fast output on both web and native without maintaining separate style systems. Its optimizing compiler, SSR-first design, and typed API make it a strong fit for performance-critical projects. The page does not explicitly list limitations or call out scenarios where the product is a poor fit.
Tamagui Core provides a large typed superset of the React Native style API that works on both web and native, shipping in approximately 24KB with no outside dependencies.
The static optimizer performs partial evaluation, CSS extraction, tree flattening, and dead-code elimination at build time, compatible with Next.js, Webpack, Vite, Babel, and Metro.
Tamagui ships all components needed for cross-platform apps with Compound Component APIs, styled or unstyled variants, and easy sizing and theming.
Themes act like CSS variables, cascade through component trees as they descend, and compile to CSS to eliminate runtime re-renders.
Responsive props and media-query hooks are written inline and compiled to atomic CSS on web, enabling breakpoint-based layouts without separate stylesheets.
Animation drivers can be switched per platform without changing component code, supporting spring configurations like bouncy, lazy, and quick presets.
SSR and React Server Components work out of the box, hydrate without flicker, and support all animation drivers, responsive styles, and themes.
Inline styles, themes, tokens, shorthands, media queries, animations, and hooks are all fully typed for end-to-end type safety.
Pricing extracted from the product website and may change. Check the source for current details.
T TamaguiThis | ||||
|---|---|---|---|---|
| Starting price | — | Free | Free | Free |
| Pricing model | Freemium | Free | Free | Freemium |
| Platforms | Web, iOS, Android | Web | Web | — |
| Top features |
|
|
|
|
| Rating | — | — | — | — |