Skip to main content
100%

Shapes and Colors with SVG and CSS

✓ Published0🌍 Public
JJepyagg
Last edited Sep 17, 2020
Created on Sep 17, 2020

This example demonstrates a range of SVG shape elements—circles, rectangles, lines, and paths—styled through both inline attributes and external CSS. It shows how fill colors, stroke widths, and stroke styles can be applied directly on elements or inherited from parent `<g>` groups. The code uses plain SVG markup with CSS selectors like `.lines` and `.lines path` to set stroke properties, and employs transforms for scaling and translation. No JavaScript libraries are used; rendering relies entirely on native SVG and CSS.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes