Skip to content

Latest commit

 

History

1,520 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rows of pastel circles, squares, and triangles with tiny eyes, drawn with css-doodle

css-doodle

A web component designed to explore the creative potential of CSS in a simple and expressive manner. It facilitates the creation of graphic patterns, visual backgrounds, handcrafted icons, and random decorations.

npm MIT license Open Collective backers

Website · Getting started · Reference · Playground · Discover

Example

<css-doodle>
  @grid: 4 / 480px / blue +.75; 
  border-radius: @pn(100% 0, 0 100%, 50%);
  background: #fff;
</css-doodle>

A 7 by 7 grid of quarter circles and circles in red, orange, and purple

Tools

  • Playground: write and share doodles in the browser
  • Shapes: discover new CSS polygon shapes
  • SVG playground: generate SVG code with the same syntax
  • cssd: command-line preview and image/video export
  • Tabbied: generated patterns for prints and wallpapers

Articles

Development

npm install
npm test         # unit tests
npm run build    # css-doodle.min.js

make runs both.

Support

css-doodle is free and MIT licensed. If it has been useful to you, consider backing it on Open Collective. Thank you! 🙏

About

A web component for visual art and creative coding

Topics

Resources

Code of conduct

Stars

6.0k stars

Watchers

49 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages