MCPcopy Index your code
hub / github.com/tamagui/tamagui

github.com/tamagui/tamagui @v2.4.0 sqlite

repository ↗ · DeepWiki ↗ · release v2.4.0 ↗
5,949 symbols 29,547 edges 7,629 files 216 documented · 4% 73 cross-repo links
README
<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">

Style library, design system, composable components, and more.

Tamagui is a bunch of libraries for building UIs that share code across React and React Native.

NPM downloads Commits per month Discord users online Gurubase

  • @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.

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

Extension points exported contracts — how you extend this code

MediaQueryList (Interface)
(no doc) [5 implementers]
code/core/web/src/types.tsx
PostHogInstance (Interface)
(no doc) [4 implementers]
code/tamagui.dev/features/posthog/types.ts
ExitTrackingData (Interface)
* EXIT COMPLETION INVARIANT TESTS * * Tests that sendExitComplete is called exactly once per exit cycle, * at the cor
code/kitchen-sink/tests/ExitCompletion.animated.test.tsx
MenuContentProps (Interface)
* We purposefully don't union MenuRootContent and MenuSubContent props here because * they have conflicting prop types.
code/ui/create-menu/types/createBaseMenu.d.ts
PackageJson (Interface)
(no doc)
scripts/bun-profile.ts
Package (Interface)
(no doc)
scripts/check-references.ts
ClaimData (Interface)
(no doc)
scripts/takeout/check-subscription-sync.ts
PlatformMethods (Interface)
(no doc)
code/packages/react-native-web-lite/src/types.ts

Core symbols most depended-on inside this repo

themed
called by 1896
code/core/helpers-icon/src/themed.tsx
info
called by 1018
code/compiler/static/src/types.ts
push
called by 657
code/tamagui.dev/features/studio/state/SidePaneStore.tsx
element
called by 497
code/ui/adapt/src/Adapt.tsx
styled
called by 447
code/core/web/src/styled.tsx
error
called by 328
code/compiler/static/src/types.ts
get
called by 320
code/packages/react-native-web-lite/src/Dimensions/index.tsx
replace
called by 262
code/tamagui.dev/features/studio/state/SidePaneStore.tsx

Shape

Function 4,802
Interface 562
Method 428
Class 152
Enum 5

Languages

TypeScript100%

Modules by API surface

code/kitchen-sink/src/usecases/AnimationComprehensiveCase.tsx59 symbols
code/tamagui.dev/features/site/purchase/NewAccountModal.tsx49 symbols
code/ui/create-menu/src/createBaseMenu.tsx43 symbols
code/tamagui.dev/features/studio/theme/store/ThemeBuilderStore.tsx41 symbols
code/tamagui.dev/features/studio/state/ColorsStore.tsx38 symbols
code/core/web/types/types.d.ts34 symbols
code/core/web/src/types.tsx34 symbols
code/packages/react-native-web-lite/src/ScrollView/index.tsx32 symbols
code/packages/use-store/test/use-store.test.tsx30 symbols
code/compiler/static-tests/tests/spec/extract-specs.tsx29 symbols
code/packages/react-native-web-lite/src/without-animated.tsx28 symbols
code/core/floating/src/interactions/utils.ts28 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@ai-sdk/anthropic3.0.84 · 1×
@babel/core7.25.2 · 1×
@babel/generator7.25.5 · 1×
@babel/helper-plugin-utils7.24.8 · 1×
@babel/parser7.25.4 · 1×
@babel/plugin-syntax-typescript7.25.4 · 1×
@babel/plugin-transform-react-jsx7.25.2 · 1×
@babel/preset-react7.24.7 · 1×
@babel/preset-typescript7.26.0 · 1×
@babel/runtime7.25.4 · 1×
@babel/template7.25.0 · 1×
@babel/traverse7.25.4 · 1×

For agents

$ claude mcp add tamagui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact