Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
🎨 CSS drawings with only one HTML element.

A customizable Jekyll portfolio theme with about, portfolio, and tools sections, easily configured via _config.yml.
A Single Div is a creative-coding GitHub project that shows how much can be accomplished with CSS by rendering every drawing as a single HTML element, with the whole thing built using Pug and Stylus.
A Single Div is a collection of CSS drawings, each made from exactly one div element, created by the developer known as lynnandtonic. The project takes markup written in Pug and styles written in Stylus, then compiles them into plain HTML and CSS that browsers render as illustrations. It is distributed as a GitHub repository with a simple npm-based build process.
npm i and starts a local server with npm start.After cloning the repository, run npm i to install dependencies and npm start to launch the local development environment. Pug templates define the single div's markup, Stylus files define its styling, and the build outputs a page that renders each drawing.
No. The author states the project is "not super practical," and that SVG is an easier and better medium for illustrations. It exists as a fun constraint-based exercise rather than a production-ready illustration technique.
Yes. The author says to copy and paste as much as you'd like, edit it, and experiment. If you reuse a significant portion of CSS or full drawings, credit to the author is appreciated.
You need Node.js to run the npm commands. Install dependencies with npm i and start the build with npm start. The project uses Pug for HTML templating and Stylus for CSS preprocessing.
Browser support is not broad, according to the author. The drawings rely on advanced CSS features that may not render consistently across older or less capable browsers.
The author is currently not taking outside contributions. Instead, they encourage you to share your own single div creations on CodePen or your own site, and to tweet a link to @lynnandtonic.