uiSTTP

How to add a gradient border to an element

.your-element {
  display: block;

  &::after {
    display: block;
    content: '';
    height: 2px;
    background: linear-gradient(90deg, transparent, goldenrod, gold, goldenrod, transparent);
  }
}