Shapes with CSS

Pure CSS

Shapes with CSS

Twenty-six shapes, from a circle to a magnifying glass, drawn with nothing but HTML and CSS. No images, no SVG. I drew them in 2021 to practise four CSS techniques: pseudo-elements, borders and box-shadow, positioning, and transforms. Pick any shape to see and copy its code.

26 shapes

More projects like these

Paste both into any page to draw it. Change --ink to recolour it. See every shape in style.css on GitHub.