expo-tailwind-setup
Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling
Skill by sidjamyl
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/sidjamyl-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 (1)
- SKILL.md
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 sidjamyl/darine_mobile, MIT.
More from sidjamyl/darine_mobile
- 0.405score
prd-to-issues
sidjamyl
Break a PRD into independent GitHub issues, with backend-first then frontend-linked workflow.
SkillDFreshness: DClaude Code +9 - 0.405score
ubiquitous-language
sidjamyl
Build and maintain a canonical domain glossary in UBIQUITOUS_LANGUAGE.md from the current conversation and existing repo terminology.
SkillDFreshness: DClaude Code +9 - 0.405score
write-a-prd
sidjamyl
Create a business-focused PRD through user interview, repo exploration, and rigorous clarification, then review it with the user before submitting it as a…
SkillDFreshness: DClaude Code +9 - 0.402score
discuss-in-french
sidjamyl
Ensures that discussions with the user are conducted in French, but all deliverables, documentation, and implementation outputs are written in English.
SkillDFreshness: DClaude Code +9 - 0.402score
start-next-issue
sidjamyl
Suggests the next GitHub issue to work on from a PRD breakdown, confirms it with the user, and initiates the pre-implementation discussion.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 10
- Last commit (this folder)
- Apr 23, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/sidjamyl/darine_mobile
- 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.281score
expo-tailwind-setup
projectaki
Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling
SkillCFreshness: CClaude Code +9
More from sidjamyl
- 0.405score
prd-to-issues
sidjamyl
Break a PRD into independent GitHub issues, with backend-first then frontend-linked workflow.
SkillDFreshness: DClaude Code +9 - 0.405score
ubiquitous-language
sidjamyl
Build and maintain a canonical domain glossary in UBIQUITOUS_LANGUAGE.md from the current conversation and existing repo terminology.
SkillDFreshness: DClaude Code +9 - 0.405score
write-a-prd
sidjamyl
Create a business-focused PRD through user interview, repo exploration, and rigorous clarification, then review it with the user before submitting it as a…
SkillDFreshness: DClaude Code +9 - 0.402score
discuss-in-french
sidjamyl
Ensures that discussions with the user are conducted in French, but all deliverables, documentation, and implementation outputs are written in English.
SkillDFreshness: DClaude Code +9 - 0.402score
start-next-issue
sidjamyl
Suggests the next GitHub issue to work on from a PRD breakdown, confirms it with the user, and initiates the pre-implementation discussion.
SkillDFreshness: DClaude Code +9
Cite this page
expo-tailwind-setup skill. Agent Mart. https://agentmart.dev/skills/sidjamyl-expo-tailwind-setup (last updated 2026-10-24)