expo / skills
expo-native-ui
Build native-feeling Expo screens: Apple HIG styling, semantic colors, native controls, SF Symbols, media, visual effects, gradients and responsive layout.
Install
npx skills add https://github.com/expo/skills --skill expo-native-uiCSS Gradients
New Architecture Only: CSS gradients require React Native's New Architecture (Fabric). They are not available in the old architecture or Expo Go.
Use CSS gradients with the experimental_backgroundImage style property.
Linear Gradients
Radial Gradients
Multiple Gradients
Stack multiple gradients by comma-separating them:
Common Patterns
Overlay on Image
Frosted Glass Effect
Button Gradient
Important Notes
- Do NOT use
expo-linear-gradient— use CSS gradients instead - Gradients are strings, not objects
- Use
rgba()for transparency, ortransparentkeyword - Color stops use percentages (0%, 50%, 100%)
- Direction keywords:
to top,to bottom,to left,to right,to top left, etc. - Degree values:
45deg,90deg,135deg, etc.