Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Shapes with SVG and CSS

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed