@use 'sass:math';

$d: 8em; // background-size
$f: .8; // heart in box relative sizing (at 1, hearts touch)

// computed stuff
$rb: 100%/(2 + math.sqrt(2));
$rs: $f*$rb;
$dx: $rs/math.sqrt(2);
$dy: $rb + $dx;

html {
  display: grid;
  height: 100%;
  background: linear-gradient(violet, gainsboro);
}

body {
  background: 
    radial-gradient(circle at 50% - $dx $rb, 
      currentcolor calc(#{$rs} + -.5px), 
      transparent calc(#{$rs} + .5px)), 
    radial-gradient(circle at 50% + $dx $rb, 
      currentcolor calc(#{$rs} + -.5px), 
      transparent calc(#{$rs} + .5px)), 
    conic-gradient(from -45deg at 50% 2*$dx, 
      currentcolor 90deg, transparent 0%) 0 calc(#{$dy/100%*$d} + -1px);
  background-size: $d $d;
  color: crimson
}
View Compiled
/*
No JS. Hand-drawn/ hand-written geometry behind the demo
https://twitter.com/anatudor/status/1592449748518244353
https://mastodon.social/@anatudor/109347080702209490

A similar pattern used as a border pattern here to frame the cat:
https://codepen.io/thebabydino/pen/JjZNXoQ
*/
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.