登录 注册
开发者工具 atomic-csscss-in-jsoptimizing-compilerreactreact-nativereact-native-web
14,307
Stars
630
Forks
46
Watchers
83
Open Issues
MIT
许可证
TypeScript
语言
2020-10-16
创建时间
2026-11-11
最近更新

项目能做什么

React 快速样式开发系统,与 React Native 100% 兼容,附带可选 UI 套件和优化编译器。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<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](https://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](https://tamagui.dev) of the Tamagui website, 49 of the 55 or so [inline styled components](https://github.com/tamagui/tamagui/blob/main/code/tamagui.dev/components/HeroResponsive.tsx) are flattened to a `div`. The homepage gains nearly 15% on Lighthouse with the compiler on.

[Learn more on the website](https://tamagui.dev/docs/intro/introduction).

---

## Contributing

To contribute to Tamagui reference the [contributing guide](https://github.com/tamagui/tamagui/blob/main/CONTRIBUTING.md).

To contribute
阅读完整原文

项目深度分析 AI 生成

高阶跨端业务级 UI 模板与 Starter Kit 销售

产品构想基于 Tamagui 生态构建包含 Next.js/Expo/Supabase 预配置的现代化生产级跨端业务脚手架和全套界面模板,帮助团队缩短跨端上线周期。
核心功能深度预配 Expo + Next.js Monorepo 模板;预设认证、支付、个人中心等标准移动端与网页端响应式页面;开箱即用的暗黑模式与动态主题包。
目标用户独立开发者、初创公司技术负责人、外包与跨端项目承接团队。
难度/周期中等 · 1 - 2 个月 · 成本:开发设备与基础静态网站托管成本(几乎零边际成本)。
收费模式一次性买断销售商业模板授权(个人版/团队版)或年费更新订阅。
竞争风险Tamagui 核心版本及配套依赖(React Native/Next.js/Expo)更新频繁导致的维护与版本兼容成本高。
依据 已验证事实

Tamagui 高级/专业跨平台组件扩展包 (Pro UI)

产品构想在 Tamagui 核心 UI 基础之上,构建复杂的跨端业务级组件集合(如复杂跨端数据表格、日历选择器、富文本、动态图表桥接)。
核心功能高度封装的跨平台手势支持复杂组件;Web 和 Native 表现一致的数据密集型控件;自动化跨端无障碍(Accessibility)适配。
目标用户正在将 Tamagui 用于复杂生产级业务系统(如跨端后台管理、金融分析客户端)的开发团队。
难度/周期较高 · 2 - 3 个月 · 成本:组件开发与多平台(iOS/Android/Web 各浏览器)持续测试成本。
收费模式按开发者或按项目席位订阅收费(SaaS/私有 NPM Registry 访问权限)。
竞争风险复杂的跨平台原生手势交互和跨端组件在低端机型上的兼容性踩坑风险较大。
依据 数据支持的判断

Tamagui 性能调优与企业级 Monorepo 迁移咨询服务

产品构想针对已有 React/React Native 项目的团队,提供向 Tamagui 迁移、编译优化器配置调优及跨端设计系统落地咨询。
核心功能现有设计资产向 Tamagui 转换方案;Webpack/Vite/Metro 编译插件深度调优;Lighthouse 性能诊断与 SSR 水合优化服务。
目标用户面临严重跨端样式复用痛点、Next.js + React Native 首屏渲染性能瓶颈的中大型技术团队。
难度/周期较高 · 按需服务,单次周期约 2 - 4 周 · 成本:主要是专家人力时间成本,无固定基础设施支出。
收费模式技术咨询与定制化实施按人天或里程碑收费(企业顾问模式)。
竞争风险客户项目代码库复杂,定制迁移成本容易超期,交付难以完全标准化。
依据 推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2020-10-16,近 30 天仍在推送,发布过 100 个 Release
社区活跃Star 14,307 / Fork 630 / Issue 83(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。