tamagui

Universal React + React Native UI library with optimizing compiler. Use when building cross-platform apps with shared styling, design tokens, themes, and accessible components.

Tamagui Skill

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

Source Code Access

Source code is available locally and on GitHub. Check local first, fall back to GitHub if not available.

Local pathGitHub
opensrc/repos/github.com/tamagui/tamagui/https://github.com/tamagui/tamagui

Documentation

Core concepts for understanding and using Tamagui's styling system.

TopicDescriptionURL
IntroductionOverview and key conceptsdocs
InstallationGetting started and setupdocs
ConfigurationcreateTamagui and config optionsdocs
ThemesDark/light modes and custom themesdocs
TokensDesign tokens for spacing, colors, fontsdocs
styled()Create styled components with variantsdocs
AnimationsAnimation drivers and configurationdocs
CompilerOptimizing compiler setupdocs
UI ComponentsPre-built component library overviewdocs

Source Code

Direct links to implementation code in the monorepo.

AreaDescriptionPath
RepositoryMain monorepo with all packagesopensrc/repos/github.com/tamagui/tamagui
UI Components50+ themed, accessible componentsopensrc/repos/github.com/tamagui/tamagui/code/ui
Core PackagesStyling engine, themes, hooks, fontsopensrc/repos/github.com/tamagui/tamagui/code/core
Compiler PluginsBundler plugins for style extractionopensrc/repos/github.com/tamagui/tamagui/code/compiler

Framework Guides

Setup instructions for integrating Tamagui with specific frameworks and bundlers.

FrameworkDescriptionDocs
ExpoReact Native with Expo managed workflowdocs
Next.jsServer-side rendering and App Routerdocs
ViteFast web development with HMRdocs
MetroReact Native bundler configurationdocs

Local References

Detailed reference files with component and API documentation.

  • references/components.md - UI component library with docs and source links
  • references/core.md - Core packages, configuration APIs, and hooks
  • references/compiler.md - Bundler plugins and optimization setup