tamagui-best-practices

Consolidate Tamagui config v4, compiler optimization, and cross-platform styling best practices.

53|7|Updated Jun 28, 2025
One-click install
npx skills add https://github.com/0xBigBoss/claude-code --skill tamagui-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tamagui-best-practices
Source: https://github.com/0xBigBoss/claude-code/tree/main/.claude/skills/tamagui-best-practices
Command: npx skills add https://github.com/0xBigBoss/claude-code --skill tamagui-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill consolidates Tamagui best practices for config v4, compiler optimization, styled context, and cross-platform styling.

Core Features & Use Cases

  • Config v4 patterns: guidance for configuring tamagui.config.ts and token/theme usage.
  • Compiler optimization: patterns to maximize static extraction and ensure efficient builds.
  • Theming and patterns across components: guidance to implement compound components, design tokens, and cross-platform styling.

Quick Start

Review the pattern files included in this skill directory (ANIMATION_PATTERNS.md, COMPILER_PATTERNS.md, DESIGN_SYSTEM.md, DIALOG_PATTERNS.md, FORM_PATTERNS.md, OVERLAY_PATTERNS.md) and start applying the documented best practices to your tamagui.config.ts and component implementations.

Frequently Asked Questions about tamagui-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize the Tamagui compiler for static extraction in v4?

To optimize the Tamagui compiler for static extraction, follow compiler patterns that maximize build efficiency by configuring tamagui.config.ts correctly and using supported component structures to ensure efficient outputs.

What are the best practices for configuring design tokens in tamagui.config.ts?

Configuring design tokens in tamagui.config.ts involves applying established v4 patterns to define themes and tokens, ensuring scalable UI foundations and consistent cross-platform styling across your component implementations.

How do I build cross-platform styling patterns with Tamagui components?

Building cross-platform styling patterns with Tamagui requires using compound components and styled contexts, applying documented design system guidelines to achieve consistent rendering across platforms.

Does Tamagui config v4 support compound components and overlay patterns?

Tamagui config v4 supports compound components and overlay patterns through documented structural guidelines, providing reference implementations for dialogs, forms, and animations to build scalable interfaces.

When should I use styled context in Tamagui for theming?

You should use styled context in Tamagui for theming when implementing compound components and cross-platform styling, as it helps consolidate design tokens and ensures consistent theme propagation.

Why does my Tamagui compiler optimization fail to extract styles statically?

Tamagui compiler optimization may fail to extract styles statically if component patterns deviate from documented configuration guidelines, preventing efficient builds and requiring adjustments to tamagui.config.ts.