<div>linear-gradient()</div>
<div>radial-gradient()</div>
<div>conic-gradient()</div>
<div>repeating-linear-gradient()</div>
<div>repeating-radial-gradient()</div>
<div>repeating-conic-gradient()</div>
@import url("https://fonts.googleapis.com/css?family=Gochi+Hand");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #291642;
  font-family: "Gochi Hand", sans-serif;
  font-size: 130%;
  letter-spacing: 0.1rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(6, 1fr);
  gap: 5vh;
}

:root {
  --color1: #ff0000;
  --color2: #ff7f00;
  --color3: #ffff00;
  --color4: #00ff00;
  --color5: #00ffff;
  --color6: #0000ff;
  --color7: #8b00ff;
}

div:nth-child(1) {
  background-image: linear-gradient(
    to right,
    var(--color1),
    var(--color2),
    var(--color3),
    var(--color4),
    var(--color5),
    var(--color6),
    var(--color7)
  );
}

div:nth-child(2) {
  background-image: radial-gradient(
    circle at center,
    var(--color1),
    var(--color2),
    var(--color3),
    var(--color4),
    var(--color5),
    var(--color6),
    var(--color7)
  );
}

div:nth-child(3) {
  background-image: conic-gradient(
    at center,
    var(--color1),
    var(--color2),
    var(--color3),
    var(--color4),
    var(--color5),
    var(--color6),
    var(--color7)
  );
}

div:nth-child(4) {
  background-image: repeating-linear-gradient(
    to right,
    var(--color1),
    var(--color2),
    var(--color3),
    var(--color4),
    var(--color5),
    var(--color6),
    var(--color7)
  );
}

div:nth-child(5) {
  background-image: repeating-radial-gradient(
    circle at center,
    var(--color1),
    var(--color2),
    var(--color3),
    var(--color4),
    var(--color5),
    var(--color6),
    var(--color7)
  );
}
div:nth-child(6) {
  background-image: repeating-conic-gradient(
    var(--color1),
    var(--color2),
    var(--color3),
    var(--color4),
    var(--color5),
    var(--color6),
    var(--color7)
  );
}

div {
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5), -1px -1px 1px rgba(0, 0, 0, 0.5);
  font-size: 2rem;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.