expo-tailwind-setup
Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling
Skill by projectaki
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/projectaki-expo-tailwind-setup
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
expo-tailwind-setup- Description
- Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling
- License
- MIT
- Instructions
- 475 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# Tailwind CSS Setup for Expo with react-native-css
This guide covers setting up Tailwind CSS v4 in Expo using react-native-css and NativeWind v5 for universal styling across iOS, Android, and Web.
## Overview
This setup uses:
- **Tailwind CSS v4** - Modern CSS-first configuration
- **react-native-css** - CSS runtime for React Native
- **NativeWind v5** - Metro transformer for Tailwind in React Native
- **@tailwindcss/postcss** - PostCSS plugin for Tailwind v4
## Installation
```bash
# Install dependencies
npx expo install tailwindcss@^4 nativewind@5.0.0-preview.2 react-native-css@0.0.0-nightly.5ce6396 @tailwindcss/postcss tailwind-merge clsx
```
Add resolutions for lightningcss compatibility:
```json
// package.json
{
"resolutions": {
"lightningcss": "1.30.1"
}
}
```
- autoprefixer is not needed in Expo because of lightningcss
- postcss is included in expo by default
## Configuration Files
### Metro Config
Create or update `metro.config.js`:
```js
// metro.config.js
const { getDefaultConfig } = require("expo/metro-config");
const { withNativewind } = require("nativewind/metro");
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);
module.exports = withNativewind(config, {
// inline variables break PlatformColor in CSS variables
inlineVariables: false,
// We add className support manually
globalClassNamePolyfill: false,
});
```
### PostCSS Config
Create `postcss.config.mjs`:
```js
// postcss.config.mjs
export default {
plugins: {
"@tailwindcss/postcss": {},
},
};
```
### Global CSS
Create `src/global.css`:
```css
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "tailwindcss/utilities.css";
/* Platform-specific font families */
@media android {
:root {
--font-mono: monospace;
--font-rounded: normal;
--font-serif: serif;
--font-sans: normal;
}
}
@media ios {
:root {
--font-mono: ui-monospace;
--font-serif: ui-serif;
--font-sans: system-ui;
--font-rounded: ui-rounded;
}
}
```
## IMPORTANT: No Babel Config Needed
With Tailwind v4 and NativeWind v5, you do NOT need a babel.config.js for Tailwind. Remove any NativeWind babel presets if present:
```js
// DELETE babel.config.js if it only contains NativeWind config
// The following is NO LONGER needed:
// module.exports = function (api) {
// api.cache(true);
// return {
// presets: [
// ["babel-preset-expo", { jsxImportSource: "nativewind" }],
// "nativewind/babel",
// ],
// };
// };
```
## CSS Component Wrappers
Since react-native-css requires explicit CSS element wrapping, create reusable components:From projectaki/.agents, MIT.
More from projectaki/.agents
- 0.553score
ensure-quality
projectaki
Check all proposed or implemented changes against every applicable AGENTS.md principle and resolve violations.
SkillAFreshness: AClaude Code +9 - 0.524score
factory-analyze-session
projectaki
Analyze a completed or interrupted software Factory session from its task directory or session reference.
SkillBFreshness: BClaude Code +9 - 0.521score
factory-draft-pr
projectaki
Publish one independently assured Factory change as a GitHub draft pull request.
SkillBFreshness: BClaude Code +9 - 0.516score
factory-assure
projectaki
Independently assure either a Factory implementation plan or an exact committed software change.
SkillBFreshness: BClaude Code +9 - 0.479score
expo-ui
projectaki
Build native UI with the @expo/ui package: real SwiftUI on iOS and Jetpack Compose on Android rendered from React in an Expo or React Native app.
SkillCFreshness: CClaude Code +9 - 0.474score
claude-cli
projectaki
Use only when explicitly requested by another workflow or the human to execute one isolated Claude CLI task in a specified repository with an explicit prompt…
SkillCFreshness: CClaude Code +9 - 0.471score
codex-cli
projectaki
Use only when explicitly requested by another workflow or the human to execute one isolated Codex CLI task in a specified repository.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 13, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/projectaki/.agents
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.515score
expo-tailwind-setup
sediman-agent
Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling
SkillCFreshness: C★ 394Claude Code +9 - 0.335score
expo-tailwind-setup
abogoyavlensky
Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling
SkillAFreshness: AClaude Code +9 - 0.298score
expo-tailwind-setup
Yemomo511
Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling.
SkillCFreshness: C★ 2Claude Code +9 - 0.242score
expo-tailwind-setup
sidjamyl
Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling
SkillDFreshness: DClaude Code +9
More from projectaki
- 0.553score
ensure-quality
projectaki
Check all proposed or implemented changes against every applicable AGENTS.md principle and resolve violations.
SkillAFreshness: AClaude Code +9 - 0.524score
factory-analyze-session
projectaki
Analyze a completed or interrupted software Factory session from its task directory or session reference.
SkillBFreshness: BClaude Code +9 - 0.521score
factory-draft-pr
projectaki
Publish one independently assured Factory change as a GitHub draft pull request.
SkillBFreshness: BClaude Code +9 - 0.516score
factory-assure
projectaki
Independently assure either a Factory implementation plan or an exact committed software change.
SkillBFreshness: BClaude Code +9 - 0.479score
expo-ui
projectaki
Build native UI with the @expo/ui package: real SwiftUI on iOS and Jetpack Compose on Android rendered from React in an Expo or React Native app.
SkillCFreshness: CClaude Code +9 - 0.474score
claude-cli
projectaki
Use only when explicitly requested by another workflow or the human to execute one isolated Claude CLI task in a specified repository with an explicit prompt…
SkillCFreshness: CClaude Code +9
Cite this page
expo-tailwind-setup skill. Agent Mart. https://agentmart.dev/skills/projectaki-expo-tailwind-setup (last updated 2026-10-24)