Below is one example of a detailed butterfly created purely in SVG. You can copy the code into an HTML file or an SVG‐editor to view or tweak it further.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Detailed Butterfly SVG -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600">
<!-- Define gradients for color effects -->
<defs>
<!-- Left Wing Gradient (used for both left wings) -->
<radialGradient id="leftWingGradient" cx="50%" cy="50%" r="50%">
<stop offset="0%" style="stop-color:#FFB347; stop-opacity:1"/>
<stop offset="100%" style="stop-color:#FFCC33; stop-opacity:1"/>
</radialGradient>
<!-- Right Wing Gradient (for a contrasting look, used in mirrored wings) -->
<radialGradient id="rightWingGradient" cx="50%" cy="50%" r="50%">
<stop offset="0%" style="stop-color:#87CEFA; stop-opacity:1"/>
<stop offset="100%" style="stop-color:#1E90FF; stop-opacity:1"/>
</radialGradient>
<!-- Body Gradient -->
<radialGradient id="bodyGradient" cx="50%" cy="50%" r="50%">
<stop offset="0%" style="stop-color:#8B4513; stop-opacity:1"/>
<stop offset="100%" style="stop-color:#A0522D; stop-opacity:1"/>
</radialGradient>
</defs>
<!-- Butterfly group -->
<g id="butterfly">
<!-- Upper Wings Group -->
<!-- Left Upper Wing with internal details -->
<g id="leftUpperWing">
<path d="
M300,300
C220,180 100,180 100,300
C100,420 220,420 300,300 Z"
fill="url(#leftWingGradient)" stroke="black" stroke-width="2"/>
<!-- Decorative patterns on left upper wing -->
<circle cx="170" cy="300" r="15" fill="white" opacity="0.7"/>
<circle cx="140" cy="260" r="10" fill="black" opacity="0.5"/>
<circle cx="190" cy="340" r="8" fill="black" opacity="0.5"/>
<path d="M120,250 L140,300 L120,350" stroke="black" stroke-width="2" fill="none"/>
</g>
<!-- Right Upper Wing is a mirror of the left upper wing -->
<g id="rightUpperWing" transform="scale(-1,1) translate(-600,0)">
<!-- We use the same left wing shape but override the fill to use the right wing gradient -->
<use xlink:href="#leftUpperWing" fill="url(#rightWingGradient)"/>
</g>
<!-- Lower Wings Group -->
<!-- Left Lower Wing with extra pattern details -->
<g id="leftLowerWing">
<path d="
M300,300
C200,320 100,380 100,500
C100,580 200,580 300,500
C400,580 500,580 500,500
C500,380 400,320 300,300 Z"
fill="url(#leftWingGradient)" stroke="black" stroke-width="2"/>
<!-- Decorative patterns on lower wing -->
<ellipse cx="180" cy="450" rx="20" ry="10" fill="white" opacity="0.6"/>
<ellipse cx="220" cy="490" rx="15" ry="7" fill="black" opacity="0.5"/>
<ellipse cx="140" cy="520" rx="12" ry="6" fill="black" opacity="0.5"/>
<path d="M150,430 Q180,460 150,490" stroke="black" stroke-width="2" fill="none"/>
</g>
<!-- Right Lower Wing is a mirror image of the left lower wing -->
<g id="rightLowerWing" transform="scale(-1,1) translate(-600,0)">
<use xlink:href="#leftLowerWing" fill="url(#rightWingGradient)"/>
</g>
<!-- Butterfly Body -->
<g id="body">
<rect x="290" y="250" width="20" height="100" fill="url(#bodyGradient)" rx="10" ry="10"/>
<!-- Subtle segmentation lines -->
<line x1="300" y1="265" x2="300" y2="335" stroke="black" stroke-width="2"/>
<line x1="300" y1="345" x2="300" y2="415" stroke="black" stroke-width="2"/>
</g>
<!-- Butterfly Antennae -->
<g id="antennae">
<path d="M300,250 Q280,230 260,220" stroke="black" stroke-width="3" fill="none"/>
<path d="M320,250 Q340,230 360,220" stroke="black" stroke-width="3" fill="none"/>
<circle cx="260" cy="220" r="4" fill="black"/>
<circle cx="360" cy="220" r="4" fill="black"/>
</g>
</g>
</svg>
Explanation
- Gradients: Three radial gradients add soft coloration to the wings and body.
- Wing Paths: The upper and lower wings are drawn as curved paths making use of cubic Bézier curves. Feel free to adjust the control points (the numbers after
C) to change the wing shape.
- Mirroring: The right wing groups are created by mirroring the left ones using a scale transform. The
translate(-600,0) repositions the mirrored group so it fits properly in the view box.
- Body & Antennae: A rounded rectangle forms the body while curved paths and circles create the antennae.
You can modify colors, shapes, and details as desired to fit your design. Enjoy creating your butterfly!