30 Days of CSS Gradients
A challenge to design CSS backgrounds with gradients for 30 days
A new CSS background for 30 days.
Some goals:
- creativity : look for inspiration in the ordinary, apply CSS creatively to create the pattern, color!
- math : rediscover geometry πβ€οΈ
- make : build something new every day, share it, ignore perfection, try it first before looking at a solution
// 2021-12-04
// 2021-12-03
// 2021-12-03
// 2021-12-03
// 2021-12-01
// 2021-11-30
// 2021-11-29
// 2021-11-28
// 2021-11-28
// 2021-11-28
// 2021-11-27
// 2021-11-25
// 2021-11-23
// 2021-11-23
// 2021-11-22
// 2021-11-21
// 2021-11-20
// 2021-11-19
// 2021-11-18
// 2021-11-17
// 2021-11-16
// 2021-11-16
// 2021-11-14
// 2021-11-13
// 2021-11-11
// 2021-11-10
// 2021-11-09
// 2021-11-08
// 2021-11-07
// 2021-11-06
// 2021-11-05
Notes and attribution
cube city: Inspired by photo by Bernard Hermant on Unsplash.
choreography: Inspired by photo by Malena Gonzalez Serena on Unsplash.
ehrenstein: Designs credited to Visual Illusions by James Kingston, published by TAJ Books International LLP in 2011.
ehrenstein again: Revisiting the construction of the Ehrenstein illusion. The visual illusion example sets the illusion over a faint radial background to show the reader itβs the mind, not eye, that sees the black (or white) circle. Unrelated while researching how to produce the design with CSS only, Jon Kantner explained short-hand background
in a way that applies size, position, and repeat per image in a way that never clicked when I read the MDN reference docs: https://css-tricks.com/drawing-images-with-css-gradients/.
.card {
background:
<image> <position> / <size> <repeat>,
<image> <position> / <size> <repeat>,
<base-color>;
}
I settled on inline SVG to draw the illusion thanks to an article by Chris Coyier: https://css-tricks.com/lodge/svg/09-svg-data-uris/.
.card {
background: url('data:image/svg+xml;utf8,<svg ...> ... </svg>');
}
Ana Tudor is masterful with CSS and gradients: