---
title: Installation
description: Get Tamagui set up, step by step
---

<IntroParagraph>
  Tamagui installs with no bundler configuration on web or native. Start small,
  and add the compiler and bundler plugins once the basics work.
</IntroParagraph>

The fastest start is a starter template:

```bash
npm create tamagui@latest
```

## Requirements

- **React 19+**
- **TypeScript 5+**
- **React Native 0.81+** with the New Architecture enabled, for native apps.
  Tamagui uses newer style features such as `boxShadow` and `filter`. On web
  there are no version restrictions.

## Install

Install the full UI kit:

```bash
yarn add tamagui @tamagui/config
```

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:

```bash
yarn add @tamagui/core @tamagui/config
```

## 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.

<MDXTabs id="frontend" defaultValue="props">
<MDXTabs.List>
  <MDXTabs.Tab value="props">Style props</MDXTabs.Tab>
  <MDXTabs.Tab value="tailwind">Tailwind</MDXTabs.Tab>
</MDXTabs.List>

<MDXTabs.Content value="props">

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.

```tsx fileName="App.tsx"
import { TamaguiProvider, View, createTamagui } from 'tamagui'
import { defaultConfig } from '@tamagui/config/v6'

const config = createTamagui(defaultConfig)

declare module 'tamagui' {
  interface TamaguiCustomConfig extends typeof config {}
}

export default () => (
  <TamaguiProvider config={config} defaultTheme="light">
    <View width={200} height={200} backgroundColor="background" />
  </TamaguiProvider>
)
```

Continue with [Components](/docs/intro/components) and
[Styling](/docs/intro/styles).

</MDXTabs.Content>

<MDXTabs.Content value="tailwind">

Tailwind utility classes on `className`, extracted to atomic CSS on web and
resolved to native styles on iOS and Android.

```bash
yarn add @tamagui/tailwind
```

```tsx fileName="App.tsx"
import { TamaguiProvider, createTamagui } from 'tamagui'
import { View } from '@tamagui/tailwind'
import { defaultConfig } from '@tamagui/config/v6'

const config = createTamagui(defaultConfig)

declare module 'tamagui' {
  interface TamaguiCustomConfig extends typeof config {}
}

export default () => (
  <TamaguiProvider config={config} defaultTheme="light">
    <View className="w-[200px] h-[200px] bg-background" />
  </TamaguiProvider>
)
```

Continue with [Tailwind](/docs/core/tailwind).

</MDXTabs.Content>
</MDXTabs>

You usually export the config from a `tamagui.config.ts` file. See
[Configuration](/docs/core/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](/docs/core/settings) working on native and lets
light and dark switch through media queries during SSR on web.

That is the whole setup:

<Preview>
  <DemoButton />
</Preview>

```tsx class=preview line=5
import { Button } from 'tamagui'

export default function Demo() {
  return <Button theme="blue">Hello world</Button>
}
```

Every feature works at runtime, so nothing above depends on a bundler plugin.
When you are ready for production, [set up the compiler](/docs/intro/compiler-install)
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:

<Spacer />

<Grid gap="4">
  <LogoCard
    title="Next.js"
    img="/logos/next-js.svg"
    link="/docs/guides/next-js"
    subtitle="React framework for web applications."
    colorOffset={2}
  />
  <LogoCard
    title="Expo"
    img="/logos/expo.svg"
    link="/docs/guides/expo"
    subtitle="Universal React Native application platform."
    colorOffset={6}
  />
  <LogoCard
    title="Vite"
    img="/logos/vite.svg"
    link="/docs/guides/vite"
    subtitle="Frontend build tool and development server."
    colorOffset={1}
  />
  <LogoCard
    title="Webpack"
    img="/logos/webpack.svg"
    link="/docs/guides/webpack"
    subtitle="Configurable JavaScript module bundler."
    colorOffset={0}
  />
  <LogoCard
    title="Metro"
    img="/logos/metro.svg"
    link="/docs/guides/metro"
    subtitle="Default JavaScript bundler for React Native."
    colorOffset={3}
  />
  <LogoCard
    title="One"
    img="/logos/one.svg"
    link="/docs/guides/one"
    subtitle="Universal React framework for web and native."
    colorOffset={4}
  />
</Grid>

## Next steps

- **[CLI](/docs/core/cli)** for building, checking versions, and generating
  agent prompts.
- **[Design system](/docs/intro/design-system)** for tokens, themes, and fonts.
- **[Custom UI package](/docs/guides/design-systems)** to build your own
  optimized component library.
