Gerillass 3.0.0 is out. One gradient mixin replaces two, and text-gradient takes its colours first, so read the migration guide before you upgrade.

Gerillass

v3.0.0

Is Gutter

Type: Function
isGutter();

True for anything that can sit where a CSS length is expected: a number, a calculation, or a CSS function such as var().

Arguments

NameTypeDescription
$valuevalueAccepts any value.

Examples

Accepting var() and calc() where a length is expected.

Sass
@mixin stack($gap) {
  @if not isGutter($gap) {
    @error "`#{$gap}` cannot be used as a gap.";
  }
  display: grid;
  gap: $gap;
}
.stack {
  @include stack(var(--gap));
}
CSS
.stack {
  display: grid;
  gap: var(--gap);
}