SkillAgentSearch skills...

Tamagui

Style React fast with 100% parity on React Native, an optional UI kit, and optimizing compiler.

Install / Use

/learn @tamagui/Tamagui

README

<div align="center"> <picture width="572px"> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/tamagui/tamagui/raw/main/code/tamagui.dev/public/logo-black.png"> <source media="(prefers-color-scheme: light)" srcset="https://github.com/tamagui/tamagui/raw/main/code/tamagui.dev/public/logo-white.png"> <img alt="Shows a black logo in light color mode and a white one in dark color mode." src="https://github.com/tamagui/tamagui/raw/main/code/tamagui.dev/public/social.png"> </picture> </div> <h3 align="center"> Style library, design system, composable components, and more. </h3> <h4 align="center"> Tamagui is a bunch of libraries for building UIs that share code across React and React Native. </h4> <br /> <div align="center"> <img alt="NPM downloads" src="https://img.shields.io/npm/dw/@tamagui/core?logo=npm&label=NPM%20downloads&cacheSeconds=3600"/> <img alt="Commits per month" src="https://img.shields.io/github/commit-activity/m/tamagui/tamagui?label=Commits&logo=git" /> <img alt="Discord users online" src="https://img.shields.io/discord/909986013848412191?logo=discord&label=Discord&cacheSeconds=3600" /> <a href="https://gurubase.io/g/tamagui"> <img alt="Gurubase" src="https://img.shields.io/badge/Gurubase-Ask%20Tamagui%20Guru-006BFF" /> </a> </div> <br /> <br />
  • @tamagui/core - Universal style library for React.
  • @tamagui/static - Optimizing compiler that works with core and tamagui.
  • tamagui - UI kit that adapts to every platform.
<br />

See tamagui.dev for documentation.

Tamagui lets you share more code between web and native apps without sacrificing the two things that typically suffer when you do: performance and code quality.

It does this with an optimizing compiler that outputs platform-specific optimizations - it turns styled components, even with complex logic or cross-module imports, into a simple div alongside atomic CSS on the web, or a View with its style objects hoisted on native.

The entirety of Tamagui works at compile time and runtime, and can be set up gradually, with initial usage as simple as importing it and using the base views and styled function.

We recommend checking out the starters with npm create tamagui@latest, they range from a simple learning example to a production-ready monorepo.

The compiler optimizes most and ultimately flattens a majority of styled components. In the ~500px² responsive browser section of the Tamagui website, 49 of the 55 or so inline styled components are flattened to a div. The homepage gains nearly 15% on Lighthouse with the compiler on.

Learn more on the website.


Contributing

To contribute to Tamagui reference the contributing guide.

To contribute to documentation, see the docs source in code/tamagui.dev/data/docs/.

View on GitHub
GitHub Stars13.8k
CategoryDevelopment
Updated7h ago
Forks590

Languages

TypeScript

Security Score

100/100

Audited on Mar 24, 2026

No findings