
Tamagui Best Practices
This is a production-oriented reference for Tamagui v1.x that surfaces the non-obvious parts: compiler optimization patterns, variant precedence rules, and the prop ordering gotchas that will bite you. It includes a table pointing to separate pattern files for dialogs, forms, and animations, then walks through Config v4 setup and when styled() beats inline props. The variants-as-const requirement and the styleable() wrapper pattern are documented clearly. If you're past the basics and hitting weird flattening issues or wondering why your dark mode variant isn't working, this covers it. The fetch commands for live docs are a nice touch for catching breaking changes between releases.
- skills.sh installs
- 290
- GitHub stars
- 48
- last updated
- Jun 3, 2026
Install
$ npx -y skills add 0xbigboss/claude-code --skill tamagui-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Files
Tamagui Best Practices
Tamagui v1.x patterns beyond fundamentals: Config v4, compiler optimization, compound components, and gotchas.
Reference Files — Read Before Writing Code
| Context | File | What it covers |
|---|---|---|
| Dialog, Sheet, modal overlays | @DIALOG_PATTERNS.md | Adapt component, accessibility |
| Form, Input, Label, validation | @FORM_PATTERNS.md | zod integration |
| Animations, transitions | @ANIMATION_PATTERNS.md | drivers, enterStyle/exitStyle |
| Popover, Tooltip, Select | @OVERLAY_PATTERNS.md | overlay primitives |
| Compiler optimization | @COMPILER_PATTERNS.md | what the compiler can/cannot flatten |
| Design tokens, theming | @DESIGN_SYSTEM.md | palette, token structure |
Config v4
Minimal setup with @tamagui/config/v4. Add styleCompat: 'react-native' for new projects to align flexBasis with React Native behavior:
import { defaultConfig } from '@tamagui/config/v4'
import { createTamagui } from 'tamagui'
export const config = createTamagui({
...defaultConfig,
settings: { ...defaultConfig.settings, styleCompat: 'react-native' },
})
Sponsors
Details
- Repository
- github.com/0xbigboss/claude-code
- First seen
- Jun 3, 2026
More from 0xbigboss/claude-code
All 22- Openai Image Gen288
- Go Best Practices272
- Playwright Best Practices266
- Axe Ios Simulator239
- Electrobun Best Practices209
- Tilt196
- Orbstack Best Practices180
- Canton Network Repos157
- Ios Device Screenshot155
- Atlas Best Practices154
- Git Best Practices149
- Git Rebase Sync146
- Testing Best Practices135
- E2e126
- Extract Transcripts122
- React Best Practices3K
- Typescript Best Practices2.9K
- Python Best Practices1.8K
- Web Fetch929
- Zig Best Practices388
- Nix Best Practices359