Get the FREE Ultimate OpenClaw Setup Guide →

tamagui

npx machina-cli add skill guillempuche/ai-standards/tamagui --openclaw
Files (1)
SKILL.md
4.8 KB

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

Source

git clone https://github.com/guillempuche/ai-standards/blob/main/skills/tamagui/SKILL.mdView on GitHub

Overview

Tamagui is a universal UI library for React and React Native that lets you share styling across platforms using design tokens and themes with accessible components. It delivers 100% parity with React Native and includes an optimizing compiler (and an optional UI kit) to speed development and improve performance.

How This Skill Works

Tamagui provides a styling system built around design tokens, theming, and a styled API with variants. Its optimizing compiler analyzes tokens and styled components to extract styles at build time, reducing runtime overhead and delivering fast cross‑platform UI.

When to Use It

  • Building a cross-platform app (web, iOS, Android) with a single design system.
  • Centralizing design tokens (colors, spacing, typography) for consistency across platforms.
  • Needing accessible components with consistent keyboard/screen reader behavior.
  • Seeking fast UI performance by leveraging Tamagui's compiler to minimize runtime styling.
  • Using React, React Native, Next, Expo, or Vite and wanting seamless cross‑framework integration.

Quick Start

  1. Step 1: Install Tamagui and integrate it into your project (React, React Native, Next, Expo, or Vite).
  2. Step 2: Create a Tamagui config with tokens and themes (createTamagui) and enable the compiler.
  3. Step 3: Start styling with styled() and variants, then run and test across platforms.

Best Practices

  • Define a balanced tokens set (colors, space, radius, font sizes) at project start and reuse it everywhere.
  • Use styled() with variants for component families instead of creating many bespoke components.
  • Keep theme definitions in a single Tamagui config (createTamagui) to simplify switching themes.
  • Test components across web and native early to catch parity or accessibility gaps.
  • Leverage the compiler by enabling build‑time style extraction to reduce bundle size and runtime work.

Example Use Cases

  • Cross‑platform shopping app (web and mobile) sharing the same design tokens and components.
  • Admin dashboard with dark/light themes and accessible controls.
  • News reader with responsive typography and themed UI kit.
  • Chat application with consistent chat bubbles, input, and actions across platforms.
  • SaaS landing page and app with tokens‑driven theming for marketing and product UIs.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers