·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