Installation
Get Tamagui set up, step by step
Tamagui installs with no bundler configuration on web or native. Start small, and add the compiler and bundler plugins once the basics work.
The fastest start is a starter template:
yarn
npm
bun
pnpm
Requirements
- React 19+
- TypeScript 5+
- React Native 0.81+ with the New Architecture enabled, for native apps.
Tamagui uses newer style features such as
boxShadowandfilter. On web there are no version restrictions.
Install
Install the full UI kit:
yarn
npm
bun
pnpm
Or install only the style library. The tamagui package is a superset of
@tamagui/core, so anywhere the docs reference core you can use either:
yarn
npm
bun
pnpm
Choose a styling frontend
Tamagui has two ways to write styles. Both produce the same output, and the choice is per import path, so you can mix them later. Pick one to start.
Style props
Tailwind
Typed style props on View, Text, and every other Tamagui component. This is
the default for new apps. It reads like React Native and needs no extra package.
App.tsx
Continue with Components and Styling.
You usually export the config from a tamagui.config.ts file. See
Configuration for what goes in it.
Set your root theme with the defaultTheme prop on TamaguiProvider rather
than wrapping the app in <Theme>. That keeps the
fastSchemeChange setting working on native and lets
light and dark switch through media queries during SSR on web.
That is the whole setup:
Every feature works at runtime, so nothing above depends on a bundler plugin. When you are ready for production, set up the compiler for smaller bundles and faster renders.
Bundler guides
Tamagui itself needs no bundler setup. React Native and React Native Web tooling often does, so Tamagui ships plugins that handle it:
Next.js
React framework for web applications.
Expo
Universal React Native application platform.
Vite
Frontend build tool and development server.
Webpack
Configurable JavaScript module bundler.
Metro
Default JavaScript bundler for React Native.
One
Universal React framework for web and native.
Next steps
- CLI for building, checking versions, and generating agent prompts.
- Design system for tokens, themes, and fonts.
- Custom UI package to build your own optimized component library.