light()

  • /src/css/core/function/_color.scss

A little brighten

scss

//
// @param   hex  $hex
// @return  hex
//

@use "node_modules/sass-basis/src/css/core";

color: core.light(#000);

lighter()

  • /src/css/core/function/_color.scss

Brighten

scss

//
// @param   hex  $hex
// @return  hex
//

@use "node_modules/sass-basis/src/css/core";

color: core.lighter(#000);

lightest()

  • /src/css/core/function/_color.scss

To very brighten

scss

//
// @param   hex  $hex
// @return  hex
//


@use "node_modules/sass-basis/src/css/core";

color: core.lightest(#000);

dark()

  • /src/css/core/function/_color.scss

A little darken

scss

//
// @param   hex  $hex
// @return  hex
//

@use "node_modules/sass-basis/src/css/core";

color: core.dark(#fff);

darker()

  • /src/css/core/function/_color.scss

Darken

scss

//
// @param   hex  $hex
// @return  hex
//

@use "node_modules/sass-basis/src/css/core";

color: core.darker(#fff);

darkest()

  • /src/css/core/function/_color.scss

To very darken

scss

//
// @param   hex  $hex
// @return  hex
//

@use "node_modules/sass-basis/src/css/core";

color: core.darkest(#fff);

is-int()

  • /src/css/core/function/_condition.scss

Checks for a valid int

scss

//
// @param   mixed  $value
// @return  bool
//

@use "node_modules/sass-basis/src/css/core";

@if (core.is-int($value)) {
  z-index: $value;
}

is-length()

  • /src/css/core/function/_condition.scss

Checks for a valid CSS length

scss

//
// @param   mixed  $value
// @return  bool
//

@use "node_modules/sass-basis/src/css/core";

@if (core.is-length($value)) {
  width: $value;
}

is-null()

  • /src/css/core/function/_condition.scss

Checks for a valid null

scss

//
// @param   mixed  $value
// @return  bool
//

@use "node_modules/sass-basis/src/css/core";

@if (not core.is-null($value)) {
  width: $value;
}

is-number()

  • /src/css/core/function/_condition.scss

Checks for a valid number

scss

//
// @param   mixed  $value
// @return  bool
//

@use "node_modules/sass-basis/src/css/core";

@if (core.is-number($value)) {
  z-index: $value;
}

gcd()

  • /src/css/core/function/_gcd.scss

Return greatest common divisor

scss

//
// @param   int  $a  The number to be divided
// @param   int  $b  The number to divide
// @return  int  The number of the remainder
//

@use "node_modules/sass-basis/src/css/core";

$gcd: core.gcd(4, 8);

min()

  • /src/css/core/function/_media-query.scss

Return min size.

  • If $size is key of $_size, return that value.
  • If $size is number, return this.

scss

//
// @param  size|length  $size
// @return length|false
//

@use "node_modules/sass-basis/src/css/core";

@media (min-width: core.min(md)) {
  ...
}

max()

  • /src/css/core/function/_media-query.scss

Return max size.

  • If $size is key of $_size, return that max value.
  • If $size is number, return this.

scss

//
// @param  size|length  $size
// @return length|false
//

@use "node_modules/sass-basis/src/css/core";

@media (max-width: core.max(md)) {
  ...
}

prev-size-key()

  • /src/css/core/function/_media-query.scss

Return prev key of $_size

scss

//
// @param  size  $size
// @return size
//

@use "node_modules/sass-basis/src/css/core";

$prev_size_key: core.prev-size-key(md); // => sm

next-size-key()

  • /src/css/core/function/_media-query.scss

Return next key of $_size

scss

//
// @param  size  $size
// @return size
//

@use "node_modules/sass-basis/src/css/core";

$next_size_key: core.next-size-key(md); // => lg

replace()

  • /src/css/core/function/_replace.scss

Replace in a string

scss

//
// @param   string|list  $substr
// @param   string       $newsubstr
// @param   string       $string
// @return  string
//

@use "node_modules/sass-basis/src/css/core";

$value: function.replace('p', 'a', 'apple'); // => aaale

sanitize-animation-name()

  • /src/css/core/function/_sanitize-animation-name.scss

Sanitize animation name

scss

//
// @param   string  $name
// @return  string
//

@use "node_modules/sass-basis/src/css/core";

$animation-name: function.sanitize-animation-name($name);
animation: $animation-name .2s ease-in 0s;

size-prefix()

  • /src/css/core/function/_size-prefix.scss

Return prefix for the device size

scss

//
// @param   string  $size  sm|md|lg
// @return  string
//

@use "node_modules/sass-basis/src/css/core";

$prefix: core.size-prefix(md); // -> --md

strip-unit()

  • /src/css/core/function/_strip-unit.scss

Return numeric value that doesn't have the unit.

scss

//
// @param   length  $value  numeric value
// @return  int
//

@use "node_modules/sass-basis/src/css/core";

$value: core.strip-unit(10px); // => 10