Shapes with SVG and CSS
✓ Published2🌍 Public
This example shows basic SVG shapes—circles, rectangles, lines, and paths—styled with both inline attributes and CSS classes. Using React, the markup renders in an SVG element with inherited fill, stroke, and stroke-width properties for grouped shapes. The `lines` class in an external stylesheet applies black strokes, while a path overrides this with red and a round line join. Scaling and translation transforms position the shapes within a 960×500 viewport.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed