= env-ribbon($color)
  span
    @if lightness($color) > 50
      background: linear-gradient(darken($color, 15) 0%, $color 100%)
      color: black
    @else
      background: linear-gradient(lighten($color, 15) 0%, $color 100%)
      color: white
    &::before
      border-left: 3px solid $color
      border-top: 3px solid $color
    &::after
      border-right: 3px solid $color
      border-top: 3px solid $color

