Clipped gradient border

Clipped gradient border: a CSS card. Copy the rules, or the prompt that rebuilds it.

gradient-borderbackground-cliplighthover-shift

Two backgrounds

White fills the padding box, a gradient fills the border box.

Learn how
CSS
@property --card-035-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 135deg
}
.card-035 {
  width: 270px;
  padding: 22px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: linear-gradient(#fff,#fff) padding-box,linear-gradient(var(--card-035-a),#f97316,#ec4899,#8b5cf6) border-box;
  font-family: system-ui,sans-serif;
  color: #1f2937;
  transition: --card-035-a .6s
}
.card-035:hover {
  --card-035-a: 315deg
}
.card-035 h3 {
  margin: 0 0 6px;
  font-size: 18px
}
.card-035 p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280
}
.card-035 a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(90deg,#f97316,#ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}
.card-035 :is(a,button,input,select,textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
HTML
<article class="card-035">
  <h3>Two backgrounds</h3>
  <p>White fills the padding box, a gradient fills the border box.</p>
  <a href="#">Learn how</a>
</article>
Prompt

Create a 270px card with a 2px gradient border using the background-clip trick: a transparent 2px border, and two backgrounds, white on the padding-box and a linear gradient (#f97316, #ec4899, #8b5cf6) on the border-box. The gradient angle is a registered @property starting at 135deg and transitioning to 315deg over 600ms on hover. 14px radius, 22px padding, 18px title #1f2937, 14px text #6b7280, and a link with gradient text (orange to pink, background-clip text).