Skip to main content
100%

Shapes with SVG and CSS

✓ Published2🌍 Public
AAaron Guillen
Last edited May 25, 2020
Created on May 25, 2020
Forked from HTML Starter

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 description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes