uniwind by pproenca/dot-skills
npx skills add https://github.com/pproenca/dot-skills --skill uniwind适用于 Uniwind(React Native 最快的 Tailwind CSS 绑定)的全面性能优化和最佳实践指南。包含 8 个类别下的 45 多条规则,按影响优先级排序,以指导自动化重构和代码生成。
在以下情况下参考本指南:
className 的第三方组件| 优先级 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 构建时配置 | 关键 | build- |
| 2 | 主题架构 | 关键 | theme- |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 3 | 组件集成 | 高 | comp- |
| 4 | 响应式设计 | 高 | resp- |
| 5 | 性能优化 | 中-高 | perf- |
| 6 | 平台模式 | 中 | plat- |
| 7 | 状态与交互 | 中 | state- |
| 8 | 迁移与兼容性 | 低-中 | compat- |
build-metro-config - 使用必需选项配置 Metro 插件build-css-entry - 将 CSS 入口文件置于应用根目录build-typescript-types - 配置 TypeScript 定义文件位置build-restart-metro - 配置更改后重启 Metrobuild-debug-mode - 在开发期间启用调试模式build-rem-polyfill - 为设计系统一致性配置 rem 基准值theme-css-variables - 使用 @theme 指令定义主题变量theme-variant-blocks - 使用 @variant 块进行主题定义theme-consistent-variables - 在所有主题中定义相同的变量theme-custom-registration - 在 Metro 配置中注册自定义主题theme-oklch-colors - 使用 OKLCH 色彩空间实现感知均匀性theme-light-dark-function - 使用 light-dark() 函数实现自适应颜色theme-no-provider - 从应用中移除 ThemeProvider 包装器comp-with-uniwind - 对第三方组件使用 withUniwindcomp-module-level - 在模块级别定义包装组件comp-prop-mapping - 为非样式属性使用自定义属性映射comp-accent-colors - 使用 accent-* 类进行颜色属性提取comp-reanimated - Reanimated 组件无需 withUniwind 即可工作comp-custom-css - 对复杂的可重用样式使用自定义 CSS 类resp-mobile-first - 采用移动优先设计,逐步增强resp-limit-breakpoints - 将断点限制在 3-5 个以提高可维护性resp-visibility-toggle - 使用 hidden/flex 实现响应式可见性resp-custom-breakpoints - 使用语义化名称定义自定义断点resp-responsive-spacing - 响应式地调整间距和排版perf-static-classnames - 使用完整的静态类名以实现构建时解析perf-use-resolve-sparingly - 谨慎使用 useResolveClassNamesperf-memoize-variants - 对变体样式对象进行记忆化perf-tailwind-merge - 使用 tailwind-merge 进行类去重perf-avoid-inline-styles - 优先使用 className 而非内联 style 属性perf-combine-styles - 正确组合 className 和 style 属性plat-ios-android-selectors - 对 iOS/Android 差异使用平台选择器plat-safe-area-context - 使用 react-native-safe-area-context 处理安全区域plat-yoga-layout - 了解 Yoga 布局引擎的差异plat-web-selector - 对跨平台应用使用 web: 选择器plat-font-families - 配置字体族时不使用回退字体state-pressable-states - 将 Pressable 与 active:/focus:/disabled: 状态结合使用state-data-selectors - 使用数据选择器进行组件状态样式设置state-no-hover - 在原生端避免使用 hover:,改用 active:state-group-variants - 对父子样式使用组变体 (WIP)state-dark-mode - 对深色模式样式使用 dark: 变体compat-nativewind-migration - 遵循 NativeWind 迁移清单compat-tailwind-4-syntax - 使用 Tailwind 4 CSS 优先配置compat-rem-default - 考虑不同的 rem 默认值compat-cssinterop-replacement - 将 cssInterop 替换为 withUniwindcompat-safe-area-changes - 将 *-safe 类替换为安全区域上下文阅读各个参考文件以获取详细说明和代码示例:
| 文件 | 描述 |
|---|---|
| AGENTS.md | 包含所有规则的完整编译指南 |
| references/_sections.md | 类别定义和排序 |
| assets/templates/_template.md | 新规则模板 |
| metadata.json | 版本和参考信息 |
每周安装量
88
代码仓库
GitHub 星标数
86
首次出现
2026年2月14日
安全审计
已安装于
codex84
opencode83
gemini-cli83
github-copilot82
kimi-cli80
amp79
Comprehensive performance optimization and best practices guide for Uniwind - the fastest Tailwind CSS bindings for React Native. Contains 45+ rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Build-Time Configuration | CRITICAL | build- |
| 2 | Theme Architecture | CRITICAL | theme- |
| 3 | Component Integration | HIGH | comp- |
| 4 | Responsive Design | HIGH | resp- |
| 5 | Performance Optimization | MEDIUM-HIGH | perf- |
| 6 | Platform Patterns | MEDIUM | plat- |
| 7 | State & Interaction | MEDIUM | state- |
| 8 | Migration & Compatibility | LOW-MEDIUM | compat- |
build-metro-config - Configure Metro Plugin with Required Optionsbuild-css-entry - Place CSS Entry File in App Root Directorybuild-typescript-types - Configure TypeScript Definition File Locationbuild-restart-metro - Restart Metro After Configuration Changesbuild-debug-mode - Enable Debug Mode During Developmentbuild-rem-polyfill - Configure rem Base Value for Design System Consistencytheme-css-variables - Define Theme Variables with @theme Directivetheme-variant-blocks - Use @variant Blocks for Theme Definitionstheme-consistent-variables - Define Identical Variables Across All Themestheme-custom-registration - Register Custom Themes in Metro Configtheme-oklch-colors - Use OKLCH Color Space for Perceptual Uniformitycomp-with-uniwind - Use withUniwind for Third-Party Componentscomp-module-level - Define Wrapped Components at Module Levelcomp-prop-mapping - Use Custom Prop Mappings for Non-Style Propscomp-accent-colors - Use accent-* Classes for Color Prop Extractioncomp-reanimated - Reanimated Components Work Without withUniwindcomp-custom-css - Use Custom CSS Classes for Complex Reusable Stylesresp-mobile-first - Design Mobile-First with Progressive Enhancementresp-limit-breakpoints - Limit Breakpoints to 3-5 for Maintainabilityresp-visibility-toggle - Use hidden/flex for Responsive Visibilityresp-custom-breakpoints - Define Custom Breakpoints with Semantic Namesresp-responsive-spacing - Scale Spacing and Typography Responsivelyperf-static-classnames - Use Complete Static Class Names for Build-Time Resolutionperf-use-resolve-sparingly - Use useResolveClassNames Sparinglyperf-memoize-variants - Memoize Variant Style Objectsperf-tailwind-merge - Use tailwind-merge for Class Deduplicationperf-avoid-inline-styles - Prefer className Over Inline style Propplat-ios-android-selectors - Use Platform Selectors for iOS/Android Differencesplat-safe-area-context - Use react-native-safe-area-context for Safe Areasplat-yoga-layout - Understand Yoga Layout Engine Differencesplat-web-selector - Use web: Selector for Cross-Platform Appsplat-font-families - Configure Font Families Without Fallbacksstate-pressable-states - Use Pressable with active:/focus:/disabled: Statesstate-data-selectors - Use Data Selectors for Component State Stylingstate-no-hover - Avoid hover: on Native - Use active: Insteadstate-group-variants - Use Group Variants for Parent-Child Styling (WIP)state-dark-mode - Use dark: Variant for Dark Mode Stylescompat-nativewind-migration - Follow NativeWind Migration Checklistcompat-tailwind-4-syntax - Use Tailwind 4 CSS-First Configurationcompat-rem-default - Account for Different rem Default Valuescompat-cssinterop-replacement - Replace cssInterop with withUniwindcompat-safe-area-changes - Replace *-safe Classes with Safe Area ContextRead individual reference files for detailed explanations and code examples:
| File | Description |
|---|---|
| AGENTS.md | Complete compiled guide with all rules |
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
Weekly Installs
88
Repository
GitHub Stars
86
First Seen
Feb 14, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex84
opencode83
gemini-cli83
github-copilot82
kimi-cli80
amp79
GSAP 框架集成指南:Vue、Svelte 等框架中 GSAP 动画最佳实践
2,900 周安装
theme-light-dark-functiontheme-no-provider - Remove ThemeProvider Wrapper from Appperf-combine-styles