@@ -42,7 +42,7 @@ $_typography-keys: (
42
42
$_typography-properties : (font , font-family , line-height , font-size , letter-spacing , font-weight );
43
43
44
44
/// Gets the m2-config from the theme.
45
- @function _get -m2-config ($theme ) {
45
+ @function get -m2-config ($theme ) {
46
46
// It is possible for a user to pass a "density theme" that is just a number.
47
47
@if meta .type-of ($theme ) != ' map' {
48
48
@return $theme ;
@@ -89,7 +89,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
89
89
/// @param {Map} $theme The theme
90
90
/// @return {String} The type of theme (either `light` or `dark`).
91
91
@function get-theme-type ($theme ) {
92
- $theme : _get -m2-config ($theme );
92
+ $theme : get -m2-config ($theme );
93
93
@if not theme-has ($theme , color ) {
94
94
@error ' Color information is not available on this theme.' ;
95
95
}
@@ -112,7 +112,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
112
112
/// @param {Number} $opacity The alpha channel value for the color.
113
113
/// @return {Color} The requested theme color.
114
114
@function get-theme-color ($theme , $palette-name , $args ... ) {
115
- $theme : _get -m2-config ($theme );
115
+ $theme : get -m2-config ($theme );
116
116
@if not theme-has ($theme , color ) {
117
117
@error ' Color information is not available on this theme.' ;
118
118
}
@@ -137,7 +137,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
137
137
/// (font, font-family, font-size, font-weight, line-height, or letter-spacing).
138
138
/// @return {*} The value of the requested font property.
139
139
@function get-theme-typography ($theme , $typescale , $property ) {
140
- $theme : _get -m2-config ($theme );
140
+ $theme : get -m2-config ($theme );
141
141
@if not theme-has ($theme , typography ) {
142
142
@error ' Typography information is not available on this theme.' ;
143
143
}
@@ -175,7 +175,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
175
175
/// @param {Map} $theme The theme
176
176
/// @return {Number} The density scale.
177
177
@function get-theme-density ($theme ) {
178
- $theme : _get -m2-config ($theme );
178
+ $theme : get -m2-config ($theme );
179
179
@if not theme-has ($theme , density ) {
180
180
@error ' Density information is not available on this theme.' ;
181
181
}
@@ -188,7 +188,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
188
188
/// @param {String} $system The system to check
189
189
/// @param {Boolean} Whether the theme has information about the system.
190
190
@function theme-has ($theme , $system ) {
191
- $theme : _get -m2-config ($theme );
191
+ $theme : get -m2-config ($theme );
192
192
@if $system == base {
193
193
@return true;
194
194
}
0 commit comments