diff --git a/color/_functions.scss b/color/_functions.scss index e3b6ff73..f1b67e3d 100644 --- a/color/_functions.scss +++ b/color/_functions.scss @@ -72,10 +72,3 @@ $_custom-property-prefix: "color"; @function emit-variable($token, $fallback: false) { @return core.emit-variable(core.$colors, _exist($token), $fallback, $_custom-property-prefix); } - -/// -/// @deprecated Use `emit-variable()` function instead. -/// -@function variable($token, $fallback: false) { - @return emit-variable($token, $fallback); -} diff --git a/core/_functions.scss b/core/_functions.scss index 0ac697e1..fa5df756 100644 --- a/core/_functions.scss +++ b/core/_functions.scss @@ -41,13 +41,6 @@ @return $tokens; } -/// -/// @deprecated Use `validation()` function instead. -/// -@function validate-theme($reference, $tokens) { - @return validation($reference, $tokens); -} - /// /// Transforms a user-provided theme's tokens map values into a `var()` custom properties. /// diff --git a/core/_mixins.scss b/core/_mixins.scss index 5054a156..5a5e8a84 100644 --- a/core/_mixins.scss +++ b/core/_mixins.scss @@ -113,24 +113,6 @@ } } -/// -/// @deprecated Use `emit-color-scheme()` mixin instead. -/// -@mixin prefers-color-scheme($scheme: light) { - $theme: ( - light, - dark - ); - - @if list.index($theme, $scheme) == null { - @error "Invalid color scheme, '#{$scheme}' doesn't exist. Choose one of '#{$theme}'."; - } - - @media (prefers-color-scheme: $scheme) { - @content; - } -} - /// /// Config. /// diff --git a/shape/_mixins.scss b/shape/_mixins.scss index 1fcb5384..89ff37f1 100644 --- a/shape/_mixins.scss +++ b/shape/_mixins.scss @@ -33,7 +33,7 @@ $_custom-property-prefix: "shape"; } } - $tokens: core.validate-theme(core.$shapes, $theme); + $tokens: core.validation(core.$shapes, $theme); $tokens: core.create-theme-vars($theme, $_custom-property-prefix); @include core.emit-theme-vars($tokens); diff --git a/typography/_mixins.scss b/typography/_mixins.scss index a6365dce..acc6e1ba 100644 --- a/typography/_mixins.scss +++ b/typography/_mixins.scss @@ -33,7 +33,7 @@ $_custom-property-prefix: "typography"; } } - $tokens: core.validate-theme(core.$typographies, $theme); + $tokens: core.validation(core.$typographies, $theme); $tokens: core.create-theme-vars($theme, $_custom-property-prefix); @include core.emit-theme-vars($tokens);