I have the following code from https://codepen.io/t_afif/pen/KKeZWjj
I am trying to modify it with basic RGB to start with:
html {
--s: 200px; /* control the size */
--_g1: red 25%, #0000 0 50%;
--_g2: green 25%, #0000 0 50%;
--_g3: blue 25%, #0000 0 50%;
--_l1: #fff 0 1px, #0000 0 calc(25% - 1px), #fff 0 25%;
--_l2: #fff 0 1px, #0000 0 calc(50% - 1px), #fff 0 50%;
background:
repeating-linear-gradient(45deg, var(--_l1)),
repeating-linear-gradient(-45deg, var(--_l1)),
repeating-linear-gradient(0deg, var(--_l2)),
repeating-linear-gradient(90deg, var(--_l2)),
conic-gradient(from 135deg at 25% 75%, var(--_g1)),
conic-gradient(from 225deg at 25% 25%, var(--_g2)),
conic-gradient(from 45deg at 75% 75%, var(--_g3)),
conic-gradient(from -45deg at 75% 25%, var(--_g1)),
conic-gradient(from 135deg at 25% 25%, var(--_g2)),
conic-gradient(from 225deg at 75% 75%, var(--_g3)),
conic-gradient(from 45deg at 25% 75%, var(--_g1)),
conic-gradient(from -45deg at 75% 25%, var(--_g2));
background-size: var(--s) var(--s);
}
I am trying to pair colours along the hypotinuse to achieve a diamond formation.
It’s not my code and I’m using ChatGPT heavily to modify it as this CSS is way beyond me, but it might be possible ?
Right now I don’t have a colour specific palette.