·styling-nativewind-v4-expo
</>

styling-nativewind-v4-expo

tristanmanchester/agent-skills

在 Expo React Native 應用程式(包括 Expo Router)中設定和使用 NativeWind v4 (Tailwind CSS v3)。設定 tailwind.config.js、global.css、babel.config.js (jsxImportSource + nativewind/babel)、metro.config.js (withNativeWind + input) 和 app.json (web 捆綁器 Metro)。解決「className not apply」、Tailwind CLI 編譯和 Metro 快取問題。透過 CSS 變數 (vars/useColorScheme) 和第三方元件樣式 (remapProps/cssInterop) 實作可重複使用元件/變體、深色模式 + 主題。使用 NativeWind v4、Tailwind 樣式的 className 公用程式處理 Expo 專案時或偵錯 NativeWind 配置時使用。

23安裝·5熱度·@tristanmanchester

安裝

$npx skills add https://github.com/tristanmanchester/agent-skills --skill styling-nativewind-v4-expo

SKILL.md

Accept className, merge defaults, and optionally use a class-variance helper.

Use remapProps (multiple style props) or cssInterop (map a class prop to a style prop).

On Expo Router, do not add your own SafeAreaProvider (Router already does). Use p-safe, pt-safe, etc.

在 Expo React Native 應用程式(包括 Expo Router)中設定和使用 NativeWind v4 (Tailwind CSS v3)。設定 tailwind.config.js、global.css、babel.config.js (jsxImportSource + nativewind/babel)、metro.config.js (withNativeWind + input) 和 app.json (web 捆綁器 Metro)。解決「className not apply」、Tailwind CLI 編譯和 Metro 快取問題。透過 CSS 變數 (vars/useColorScheme) 和第三方元件樣式 (remapProps/cssInterop) 實作可重複使用元件/變體、深色模式 + 主題。使用 NativeWind v4、Tailwind 樣式的 className 公用程式處理 Expo 專案時或偵錯 NativeWind 配置時使用。 來源:tristanmanchester/agent-skills。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/tristanmanchester/agent-skills --skill styling-nativewind-v4-expo
分類
</>開發工具
認證
收錄時間
2026-02-11
更新時間
2026-02-18

快速解答

什麼是 styling-nativewind-v4-expo?

在 Expo React Native 應用程式(包括 Expo Router)中設定和使用 NativeWind v4 (Tailwind CSS v3)。設定 tailwind.config.js、global.css、babel.config.js (jsxImportSource + nativewind/babel)、metro.config.js (withNativeWind + input) 和 app.json (web 捆綁器 Metro)。解決「className not apply」、Tailwind CLI 編譯和 Metro 快取問題。透過 CSS 變數 (vars/useColorScheme) 和第三方元件樣式 (remapProps/cssInterop) 實作可重複使用元件/變體、深色模式 + 主題。使用 NativeWind v4、Tailwind 樣式的 className 公用程式處理 Expo 專案時或偵錯 NativeWind 配置時使用。 來源:tristanmanchester/agent-skills。

如何安裝 styling-nativewind-v4-expo?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/tristanmanchester/agent-skills --skill styling-nativewind-v4-expo 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/tristanmanchester/agent-skills