<h1 class="fill" style="--gradient:  linear-gradient(to right, red, gold)">Text Gradient</h1>
<h1 class="fill" style="--gradient: radial-gradient(red, gold)">Text Gradient</h1>
<h1 class="fill" style="--gradient: conic-gradient(red, yellow, lime, aqua, blue, magenta, red)">Text Gradient</h1>
<h1 class="fill" style="--gradient: repeating-linear-gradient(90deg,red,red 20px,gold 20px,gold 40px)">Text Gradient</h1>
<h1 class="fill" style="--gradient: repeating-radial-gradient(circle at left top,red 25%,gold 25%,gold 50%,red 50%, red 75%, gold 0)">Text Gradient</h1>
<h1 class="fill" style="--gradient: repeating-conic-gradient(gold, #f06 20deg)">Text Gradient</h1>
<h1 class="fill" style="--gradient: linear-gradient(to bottom, red, red 50%, gold 50%, gold 100%)">Text Gradient</h1>
<h1 class="fill dotted" style="--gradient: radial-gradient(#ff8a00 35%, transparent 35%)">Text Gradient</h1>

<h1 class="stroke" style="--gradient:  linear-gradient(to right, red, gold)">Text Gradient</h1>
<h1 class="stroke" style="--gradient: radial-gradient(red, gold)">Text Gradient</h1>
<h1 class="stroke" style="--gradient: conic-gradient(red, yellow, lime, aqua, blue, magenta, red)">Text Gradient</h1>
<h1 class="stroke" style="--gradient: repeating-linear-gradient(90deg,red,red 20px,gold 20px,gold 40px)">Text Gradient</h1>
<h1 class="stroke" style="--gradient: repeating-radial-gradient(circle at left top,red 25%,gold 25%,gold 50%,red 50%, red 75%, gold 0)">Text Gradient</h1>
<h1 class="stroke" style="--gradient: repeating-conic-gradient(gold, #f06 20deg)">Text Gradient</h1>
<h1 class="stroke" style="--gradient: linear-gradient(to bottom, red, red 50%, gold 50%, gold 100%)">Text Gradient</h1>
<h1 class="stroke dotted" style="--gradient: radial-gradient(#ff8a00 35%, transparent 35%)">Text Gradient</h1>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");

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

body {
  width: 100vw;
  min-height: 100vh;
  font-family: "Exo", Arial, sans-serif;
  background-color: #222;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px 10px;
  padding: 10px 10px 36px;
  font-size: 1.5rem;
  place-content: center;
}

h1 {
  text-align: center;
  background-clip: text;
  background-image: var(--gradient);
  margin: 0;
}

.fill {
  text-fill-color: transparent;
  color: transparent;
}

.stroke {
  -webkit-text-stroke: 10px transparent;
}

.dotted {
  background-size: 2px 2px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.