Skip to content

Instantly share code, notes, and snippets.

@luisvinicius09
Created April 2, 2023 17:24
Show Gist options
  • Save luisvinicius09/d5238270ec07695c23a5d76ca707c2ec to your computer and use it in GitHub Desktop.
Save luisvinicius09/d5238270ec07695c23a5d76ca707c2ec to your computer and use it in GitHub Desktop.
Cube background pattern
html {
--u: 2vmin; /* change size */
--c1: #343a40;
--c2: #212529;
--s1: #0002;
--gp: 50%/calc(var(--u) * 10) calc(var(--u) * 10);
height: 100vh;
background:
repeating-conic-gradient(from 0deg at 50% 13.75%, var(--s1) 0 20.55%, #fff0 21.05% 79.13%, var(--s1) 79.63% 100% ) var(--gp),
repeating-conic-gradient(from 0deg at 50% 50%, #fff0 0 25%, var(--s1) 25% 29%, #fff0 30% 70%, var(--s1) 71% 75%, #fff0 75% 100%) var(--gp),
repeating-conic-gradient(from 0deg at 50% 50%, var(--c1) 0 25%, var(--c2) 0% 50%, var(--c1) 0 75%, var(--c2) 0% 100% ) var(--gp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment