viewy 2.0.6

A web UI toolkit that combine the advantages of a design system and an ui library.
$bar-height: 16;
.gauge {
  --optimum-indicator-size: sp(6);
  position: relative;
  &__optimum-indicator:after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border: calc(var(--optimum-indicator-size) * 0.67) solid transparent;
    border-bottom: var(--optimum-indicator-size) solid var(--color-text);
    border-top: 0 solid transparent;
    display: block;
    box-sizing: border-box;
  }

  &__meter-bar {
    appearance: none;
    height: sp($bar-height);
    border-radius: sp($bar-height / 2);
    border: sp(1) solid var(--color-border);
    background: var(--background);

    &::-webkit-meter-bar, &:-moz-meter-optimum {
      background: var(--background);
      border-radius: sp($bar-height / 2);
    }

    &::-webkit-meter-optimum-value, &:-moz-meter-optimum::-moz-meter-bar {
      background: var(--color-success);
      border-radius: sp($bar-height / 2);
    }

    &::-webkit-meter-suboptimum-value, &:-moz-meter-sub-optimum::-moz-meter-bar {
      background: var(--color-warning);
      border-radius: sp($bar-height / 2);
    }

    &::-webkit-meter-even-less-good-value, &:-moz-meter-sub-sub-optimum::-moz-meter-bar {
      background: var(--color-destructive);
      border-radius: sp($bar-height / 2);
    }
  }


}