Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
KKumhee
Last edited Sep 12, 2020
Created on Sep 12, 2020
Forked from HTML Starter

This example demonstrates how to create basic SVG shapes—circles, rectangles, lines, and paths—using React and CSS styling. It shows both default black shapes and colored variants, with a specific group (`g`) applying a cyan fill and black stroke, while a `.lines` class adds thick green strokes with rounded line joins. The SVG canvas uses a scale transformation and translation to position elements. Styling is handled entirely through the linked `styles.css` file, with no JavaScript data manipulation, as the example relies solely on static markup.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes