Shapes with SVG and CSS
This example demonstrates how to combine SVG elements with CSS styling to create and transform basic geometric shapes. The visualization shows circles, rectangles, lines, and paths arranged in a grid-like layout, with some shapes inheriting default black fills while others are explicitly colored red and green. The code uses raw SVG tags like `<circle>`, `<rect>`, `<line>`, and `<path>` inside a `<g>` element with scale and translate transforms. CSS classes and rules in `styles.css` control stroke properties, including a custom `stroke-linejoin` for paths, while the body’s margin and overflow are reset for full-viewport display.