8️⃣ 736 ♥️ Pure #CSS 1 div card patterns (no SVG, no images other than CSS gradients) - see it on @codepen https://codepen.io/thebabydino/pen/NWxBzRv

A bunch of variations on the pure CSS #halftone technique detailed in this article https://frontendmasters.com/blog/pure-css-halftone-effect-in-3-declarations/

#cssPattern #cssPatterns #cssGradient #halftonePattern #frontend #coding #web #dev #webDev #webDevelopment #code

A cool little pure #CSS background #pattern on @codepen https://codepen.io/thebabydino/pen/YzvYqWL

Can you figure out how it was made before checking the code? 😼

#cssPattern #frontend #code #coding #web #dev #webDev #webDevelopment #cssGradient #cssPatterns

Pure CSS pattern

[Inspiration](https://www.shutterstock.com/image-vector/seamless-geometric-pattern-color-ornament-2128663697). --- If the work I've been putting out ...

Here's another set of cards with varying patterns, all created with the exact same 4 blended CSS gradients, it's just the stops list `--c` that changes for each card.

So basically, it's again just one `background` + one `background-blend-mode` property.

Live demo on @codepen
https://codepen.io/thebabydino/pen/vYyNyER

#CSS #blending #blendMode #pattern #cssGradient #coding #frontend #code #web #dev #webDev #webDevelopment #cssPattern #cssPatterns #patterns

Simple 1 elem pure CSS card patterns

[See me code this](https://youtu.be/wPIQvB1nFv0) in under 9 minutes. --- If the work I've been putting out for almost 9 years (I started coming up wi...

I haven't had the time to do anything for this week's #CodePenChallenge yet, but here are some older card demos:

From 5+ years ago: pure #CSS 1 element bevel cards! No SVG or images save for the cat, real (semi)transparency inside borders and all.

See it on @codepen https://codepen.io/thebabydino/pen/ZEGNNQz

#clipPath #cssClipPath #code #coding #web #dev #webDev #webDevelopment #frontend #cssPattern #cssPatterns #cssGradient

1 element bevel cards (pure CSS) - real (semi)transparency inside borders and all that

My take on the [beveled corners + borders problem](https://twitter.com/anatudor/status/1246515163559268360). Also my first demo that's not a fork in 4 ...

Minimal pure #CSS textile patterns on @codepen https://codepen.io/thebabydino/full/OJmpzya

Absolutely no images other than CSS gradients and they are all tiny! All of them are under 500 bytes minified, some of them well under!

#pattern #cssPattern #frontend #patterns #cssPatterns #cssGradient #coding #web #dev #webDev #webDevelopment #textile #code

Minimal pure CSS textile patterns

Created for the CodePen challenge. --- If the work I've been putting out since early 2012 has helped you in any way or you just like it and you wish ...

Here's a blue textile pattern. It's pure #CSS, using only background gradients on a single element (the root element in this case). No other images or tricks.

Oh, and it's under 500 bytes minified!

Can you guess how I did it before checking the code? Let me know!

https://codepen.io/thebabydino/pen/bGKOzvX

Oh, and if you want more textile patterns, check this out! https://codepen.io/thebabydino/full/OJmpzya

#cssPatterns #CodePen

So here's a little #cssChallenge2022: how would you #css this pattern?

⚠️ 1 HTML element
❌ no pseudos
⚠️ pure CSS
❌ no JS
❌ no SVG
⚠️ no images in general save for CSS gradients
✨ acute (top) rhombus angle is 76°
✨ rhombus width is 5em
✨ light gold is #fd8

PS - If you're a $5+ patron on Patreon, know I've already posted the solution there 👀 🤫

#cssPatterns

Another little pure #CSS pattern: rhombic 🔥 https://codepen.io/thebabydino/pen/mdKQXqg

Minified compiled CSS is under 380 bytes. Can you figure out how before checking the code? 😊

Palette:
ed7b32 f19b36 966459 824739
b65333 fadc9c f4bb3a d6552b
Rhombi have a 60° acute angle and are 4em wide.

#cssPatterns #CodePen

Pure #css pattern on #CodePen: connectors https://codepen.io/thebabydino/pen/MWXVRjr

Made with two grids of targets, one with black in the middle, the other one with white, offset by half a background-size.

These targets touch diagonally, so their size within background box is computed as in the hand drawing.

Beside these two layers, we also stack a conic-gradient one of twice the background-size of the other two and which creates a sort of chessboard. We blend all 3 of them using lighten.

#cssPatterns

Pure #css pattern: 🥀

https://codepen.io/thebabydino/pen/zYaayWW

Felt like making this one a bit more gradienty than the original https://www.shutterstock.com/image-vector/black-yellow-art-deco-seamless-pattern-1641614395
(otherwise, the number of gradients could be reduced)

#CodePen #cssPatterns

×

A cool little pure #CSS background #pattern on @codepen https://codepen.io/thebabydino/pen/YzvYqWL

Can you figure out how it was made before checking the code? 😼

#cssPattern #frontend #code #coding #web #dev #webDev #webDevelopment #cssGradient #cssPatterns

@anatudor @codepen I feel like I'm a bit late to this party but my answer: 3 gradients, just one less than yours. But no color-mixing. https://codepen.io/artlung/pen/oggJePp
Pure CSS pattern

[Inspiration](https://www.shutterstock.com/image-vector/seamless-geometric-pattern-color-ornament-2128663697). --- If the work I've been putting out ...

@artlung Psst, https://mastodon.social/@anatudor/112965908316021981

In short: that 1% gap between 69% and 70% may look good on your screen, but not necessarily on others.

Also, closest-side makes things easier:

radial-gradient(closest-side,
#0000 calc(100% - 1px), blue)

(cool idea to paint the outer part leaving middle transparent, btw)

`repeating-conic-gradient()` simplifies things too https://css-tricks.com/background-patterns-simplified-by-conic-gradients/#aa-diagonal-checkerboard

Background Patterns, Simplified by Conic Gradients | CSS-Tricks

For those who have missed the big news, Firefox now supports conic gradients!

CSS-Tricks
@anatudor Intriguing tips I don’t use closest-side typically. As to the 69%/70% I usually would to 69%/0 as the color stops — added the 70% to get closer to your implemention’s spacing. That percent calc minus 1px feels funny but I’ll add to my toolkit. And the successive layers of gradient with parts transparent is my habit borne of doing CSS battles (I’ve done YT videos for all their daily targets) and probably also my brain still thinking like Photoshop 3.0 layers. Fun challenge!

@artlung The ~70% value is 100%/sqrt(2) with the default `farthest-corner`. For this default, when starting from the middle, the 100% is in the corners. On the edges, like needed here, it's 100%/sqrt(2). With `closest-side`, 100% is on the edges and the last stop is by default at 100%, so then I only need to specify the previous one at 100% - 1px to avoid ugly jagged edges as x%/0 would produce.

But I can see why leaving the default & just using % would be preferred for CSS Battle (fewer chars)

@anatudor I sometimes use keyword `circle` in radial gradients on background sizes that are not aspect ratio 1/1. I’ll be experimenting with farthest-corner and closest-side in nonsquare background sizes. Want to feel the effects!

Also: in CSS battles some targets with curves or angles are tough to 100% match from backend. Maybe because backend uses headless Chromium with 800x600 reference png; players code to are a 400x300 viewport; theory is half pixels/aliasing we can’t quite access.