Figma Node: 123:1084
Design: Gradient star with purple-to-blue coloring
Date: November 22, 2025
Location: components/icons/StarImageIcon.jsx
- Uses the actual star image from Figma
- Pixel-perfect accuracy
- Props:
size,style - No additional dependencies required
import { StarImageIcon } from "../components/icons/IconComponents";
<StarImageIcon size={50} />;Location: components/icons/StarIcon.jsx
- Programmatic gradient star
- Customizable gradient colors
- Props:
size,colors - Uses
expo-linear-gradient
import { StarIcon } from "../components/icons/IconComponents";
<StarIcon size={50} colors={["#FF1493", "#8A2BE2", "#0080FF"]} />;Location: app/star-demo.jsx
Full demonstration screen showing:
- Both star variants in different sizes
- Usage examples (headers, backgrounds, buttons)
- Implementation notes
- Best practices
Access via: Navigate to /star-demo route
Files Created:
components/icons/STAR_USAGE.md- Detailed usage guideSTAR_IMPLEMENTATION.md- This file- Updated
COMPONENT_GUIDE.mdwith Star icon documentation
- Shape: 4-pointed diamond star with rounded edges
- Colors: Purple (#FF1493) → Blue (#8A2BE2) → Cyan (#0080FF)
- Style: Smooth gradient with soft edges
- Figma Asset: https://www.figma.com/api/mcp/asset/54f7520a-fedc-4176-a2d1-02d11ef07274
- Recommended sizes: 20px (small), 50px (medium), 80px (large)
- Scalable to any size
- Maintains aspect ratio
expo-linear-gradient - For gradient version of starBoth components are exported from components/icons/IconComponents.jsx:
export { default as StarIcon } from "./StarIcon";
export { default as StarImageIcon } from "./StarImageIcon";components/icons/
├── IconComponents.jsx # Main export file
├── StarIcon.jsx # Gradient version
├── StarImageIcon.jsx # Image version
└── STAR_USAGE.md # Usage documentation
import { StarImageIcon, StarIcon } from '../components/icons/IconComponents';
// Image-based (recommended)
<StarImageIcon size={50} />
// Gradient-based
<StarIcon size={50} />// Gold gradient
<StarIcon size={60} colors={["#FFD700", "#FFA500", "#FF6347"]} />// Premium badge
<View style={styles.badge}>
<StarImageIcon size={20} />
<Text>Premium</Text>
</View>// Floating stars
<View style={styles.container}>
<StarImageIcon size={30} style={styles.star1} />
<StarImageIcon size={25} style={styles.star2} />
<Text>Content here</Text>
</View>You can add stars to the AI Prompt Button:
// In AIPromptButton.jsx
<View style={styles.starDecoration}>
<StarImageIcon size={20} />
</View>| Feature | StarImageIcon | StarIcon |
|---|---|---|
| Accuracy | Pixel-perfect | Close approximation |
| Dependencies | None | expo-linear-gradient |
| Customization | Size only | Size + colors |
| Performance | Cached image | Rendered gradient |
| File Size | Small image | No image |
| Best For | Consistent design | Dynamic colors |
- You need pixel-perfect accuracy
- Design consistency is critical
- You're matching the exact Figma design
- No color customization needed
- You need different color variations
- Dynamic theming is required
- You want to avoid external assets
- You need animated color transitions
The demo screen showcases all star variations and usage examples.
Navigate to demo:
import { router } from "expo-router";
router.push("/star-demo");Or add to Quick Actions:
{
id: 'star-demo',
icon: <StarImageIcon size={28} />,
label: 'Star\nDemo',
isActive: true,
}const rotateAnim = useRef(new Animated.Value(0)).current;
useEffect(() => {
Animated.loop(
Animated.timing(rotateAnim, {
toValue: 1,
duration: 3000,
useNativeDriver: true,
})
).start();
}, []);
const rotate = rotateAnim.interpolate({
inputRange: [0, 1],
outputRange: ["0deg", "360deg"],
});
<Animated.View style={{ transform: [{ rotate }] }}>
<StarIcon size={50} />
</Animated.View>;const stars = [
{ size: 30, x: 20, y: 10, opacity: 0.5 },
{ size: 25, x: 80, y: 40, opacity: 0.7 },
{ size: 35, x: 50, y: 70, opacity: 0.4 },
];
<View style={styles.container}>
{stars.map((star, index) => (
<StarImageIcon
key={index}
size={star.size}
style={{
position: "absolute",
left: star.x,
top: star.y,
opacity: star.opacity,
}}
/>
))}
</View>;- StarImageIcon renders correctly
- StarIcon renders with default gradient
- StarIcon accepts custom colors
- Components scale properly with size prop
- No linter errors
- Images load from Figma CDN
- Gradients display smoothly
- Demo screen showcases all features
- Documentation is complete
The star icon from Figma (node-id: 123:1084) has been fully implemented with:
- ✅ Two component variants (image & gradient)
- ✅ Full documentation
- ✅ Demo screen with examples
- ✅ Usage guide
- ✅ No errors or warnings
Ready for use in your app!
- Use in existing components: Add stars to AI button, headers, etc.
- Create premium features: Use stars to indicate premium content
- Animate stars: Add rotation or scaling animations
- Customize colors: Match your brand with StarIcon
- Test on device: Verify appearance on real devices
Last Updated: November 22, 2025
Version: 1.0.0
Status: ✅ Production Ready