Below is an example of detailed SVG code that creates a stylized butterfly with gradient‐filled wings, a central body, and antennae. You can copy this code into an HTML file or an SVG editor to view and tweak it further.
<svg width="300" height="300" viewBox="0 0 300 300"
xmlns="http://www.w3.org/2000/svg"
version="1.1">
<!-- Define gradients for the wings -->
<defs>
<linearGradient id="leftWingGradient" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" style="stop-color:#FF6699;" />
<stop offset="100%" style="stop-color:#FF3399;" />
</linearGradient>
<linearGradient id="rightWingGradient" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" style="stop-color:#66CCFF;" />
<stop offset="100%" style="stop-color:#0099FF;" />
</linearGradient>
</defs>
<!-- Left Upper Wing -->
<path d="M150,150
C 70,50 10,100 30,150
C 50,200 80,220 150,150"
fill="url(#leftWingGradient)"
stroke="#333" stroke-width="2"/>
<!-- Left Lower Wing -->
<path d="M150,150
C 80,170 30,220 50,260
C 80,300 130,300 150,150"
fill="url(#leftWingGradient)"
stroke="#333" stroke-width="2"/>
<!-- Right Upper Wing -->
<path d="M150,150
C 230,50 290,100 270,150
C 250,200 220,220 150,150"
fill="url(#rightWingGradient)"
stroke="#333" stroke-width="2"/>
<!-- Right Lower Wing -->
<path d="M150,150
C 220,170 270,220 250,260
C 220,300 170,300 150,150"
fill="url(#rightWingGradient)"
stroke="#333" stroke-width="2"/>
<!-- Butterfly Body -->
<rect x="145" y="130" width="10" height="100" fill="#663300" rx="5" ry="5"/>
<!-- Left Antenna -->
<path d="M150,130
C 140,110 120,100 110,90"
fill="none" stroke="#663300" stroke-width="2"/>
<!-- Right Antenna -->
<path d="M150,130
C 160,110 180,100 190,90"
fill="none" stroke="#663300" stroke-width="2"/>
</svg>
Explanation
-
<defs> and <linearGradient>:
Two gradients are defined—one for the left wings (leftWingGradient) and one for the right wings (rightWingGradient). You can adjust the colors at the stop elements to customize the wing colors.
-
Wing Paths:
The butterfly’s wings are drawn with two <path> elements per side (upper and lower wings) using cubic Bézier curves (C). These curves help create smooth, flowing shapes for a natural look.
-
Body and Antennae:
A small rectangle (<rect>) forms the butterfly’s body, and two additional paths create the curved antennae.
Feel free to modify the coordinates, colors, or curves to better suit your design or to add further details. Enjoy your butterfly SVG!