chore: update SASS and fix all associated depreciation errors

This commit is contained in:
alexsparkes
2025-10-27 22:59:48 +00:00
parent 97c876c714
commit 83b3204afa
37 changed files with 320 additions and 205 deletions

View File

@@ -1,7 +1,7 @@
// since alex will no doubtedly be looking at this file often
// here's a reminder: please add a new line when doing nested scss, otherwise it is messy!
@use 'sass:map';
@import 'mixins';
@use 'mixins' as *;
$background: 'background';
$boxShadow: 'boxShadow';
@@ -89,7 +89,36 @@ $themes: (
),
);
$theme-map: null;
@mixin themed() {
@each $theme, $themeMap in $themes {
.#{$theme} & {
$theme-map: () !global;
@each $key, $submap in $themeMap {
$value: map.get(map.get($themes, $theme), '#{$key}');
$theme-map: map.merge(
$theme-map,
(
$key: $value,
)
) !global;
}
@content;
$theme-map: null !global;
}
}
}
@function t($key) {
@return map.get($theme-map, $key);
}
%basic {
backdrop-filter: blur(map.get($ui-elements, 'backgroundBlur'));
@include themed {
background: t($background);
border-radius: t($borderRadius);
@@ -97,8 +126,6 @@ $themes: (
box-shadow: t($boxShadow);
}
backdrop-filter: blur(map.get($ui-elements, 'backgroundBlur'));
.title {
font-size: 18px;