General

variables

app-version

$app-version: '1.0.0' !default;

Description

Application version

Type

String

Used by

deprecate-mode

$deprecate-mode: 'sensible' !default;

Description

Deprecation mode

Available modes:

  • disabled: output all the code, even if deprecated
  • silent: disable all warnings but don't output deprecated code
  • verbose: show all warnings, even for code that is about to be deprecated
  • sensible (default): output warnings when deprecated code is detected
  • fail: prevent compilation when deprecated code is found

Type

String

Used by

mixins

deprecate

@mixin deprecate($version, $message) { ... }

Description

Output code only until $app-version reaches $version and signal its deprecation to developers

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$version

SemVer-like version (e.g. '2.0.0')

String none
$message

Reason about why the code will be deprecated or possible workaround (e.g. 'Use .new-thing instead')

String none

Requires