@@ -42,7 +42,7 @@ $_typography-keys: (
4242$_typography-properties : (font , font-family , line-height , font-size , letter-spacing , font-weight );
4343
4444/// Gets the m2-config from the theme.
45- @function _get -m2-config ($theme ) {
45+ @function get -m2-config ($theme ) {
4646 // It is possible for a user to pass a "density theme" that is just a number.
4747 @if meta .type-of ($theme ) != ' map' {
4848 @return $theme ;
@@ -89,7 +89,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
8989/// @param {Map} $theme The theme
9090/// @return {String} The type of theme (either `light` or `dark`).
9191@function get-theme-type ($theme ) {
92- $theme : _get -m2-config ($theme );
92+ $theme : get -m2-config ($theme );
9393 @if not theme-has ($theme , color ) {
9494 @error ' Color information is not available on this theme.' ;
9595 }
@@ -112,7 +112,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
112112/// @param {Number} $opacity The alpha channel value for the color.
113113/// @return {Color} The requested theme color.
114114@function get-theme-color ($theme , $palette-name , $args ... ) {
115- $theme : _get -m2-config ($theme );
115+ $theme : get -m2-config ($theme );
116116 @if not theme-has ($theme , color ) {
117117 @error ' Color information is not available on this theme.' ;
118118 }
@@ -137,7 +137,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
137137/// (font, font-family, font-size, font-weight, line-height, or letter-spacing).
138138/// @return {*} The value of the requested font property.
139139@function get-theme-typography ($theme , $typescale , $property ) {
140- $theme : _get -m2-config ($theme );
140+ $theme : get -m2-config ($theme );
141141 @if not theme-has ($theme , typography ) {
142142 @error ' Typography information is not available on this theme.' ;
143143 }
@@ -175,7 +175,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
175175/// @param {Map} $theme The theme
176176/// @return {Number} The density scale.
177177@function get-theme-density ($theme ) {
178- $theme : _get -m2-config ($theme );
178+ $theme : get -m2-config ($theme );
179179 @if not theme-has ($theme , density ) {
180180 @error ' Density information is not available on this theme.' ;
181181 }
@@ -188,7 +188,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
188188/// @param {String} $system The system to check
189189/// @param {Boolean} Whether the theme has information about the system.
190190@function theme-has ($theme , $system ) {
191- $theme : _get -m2-config ($theme );
191+ $theme : get -m2-config ($theme );
192192 @if $system == base {
193193 @return true;
194194 }
0 commit comments