The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
$color: red;
$position: 50%;
$x: 0;

@mixin foo() {
  image: url(foo.png);
}

div {
  background: {
    something: {
      color: green;
    }
    @if (type-of($color) == "color") {
      color: $color;
    }
    @if (type-of($position) == "number") {
      position: $position;
      @include foo();
    }
    groo: foo;
  }
  width: $x;
}