Skip to main content
100%

Shapes and Colors with SVG and CSS

✓ Published1🌍 Public
AAndres Bizzarri
Last edited Dec 30, 2019
Created on Dec 30, 2019

Shapes and Colors with SVG and CSS demonstrates basic vector graphics primitives and styling. Circles and rectangles appear with default black fills, then explicit inline fills like red and `#83cc2a`, and a grouped set with a light fill and black stroke. The example uses SVG elements `circle`, `rect`, `line`, and `path`, with CSS classes (`.lines`) controlling stroke properties on paths. A `transform` attribute scales the entire drawing while nested `translate` groups position elements. Styling combines presentation attributes, inline styles, and an external stylesheet.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes