Remove stalfos lib - with regression on some UI elements

This commit is contained in:
2025-09-26 16:17:38 +02:00
parent 208ec207e5
commit 327e8a2af4
12 changed files with 39 additions and 173 deletions

25
src/scss/_functions.scss Normal file
View File

@@ -0,0 +1,25 @@
/**
* CUSTOM FUNCTIONS
* Replacement functions for stalfos get-size() and get-color() functions
*/
/**
* Get size from the size scale
* @param {string|number} $size - The size key from the scale
* @return {string} - The size value
*/
@function get-size($size) {
@if $size == 'base' {
@return map-get($tokens, 'size-scale', 'base');
}
@return map-get($tokens, 'size-scale', $size);
}
/**
* Get color from the color palette
* @param {string} $color - The color key from the palette
* @return {string} - The color value
*/
@function get-color($color) {
@return map-get($tokens, 'colors', $color);
}