Skip to main content
100%

Theme Experiment

✓ Published0🌍 Public
CCurran Kelleher
Last edited Aug 7, 2017
Created on Aug 4, 2017

This example displays a color palette and typography system as a static SVG composition, using a custom theme object to define blues, yellows, greens, and grays. It renders square swatches in two rows, separated by a line, followed by text samples for headline, subheadline, and body styles. The code uses d3.v4 selections and appends rectangles, lines, and text elements via methods like `attr` and `style`. The rendering approach is direct SVG manipulation with a Lato font from Google Fonts, and the layout is computed from explicit dimensions and spacing constants.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes