fix!: bring the scope autocompletion in by changing style input syntax

BREAKING CHANGE: `styly`, `sassy` macros syntax change. Now requires `{"$code"}`.
This commit is contained in:
Yiffy Dev 2024-11-01 09:42:37 +05:00 • committed by spushk
commit c5c550f0ce
Signed by: spushk
GPG key ID: 7797B761E105E8AA

View file

@ -2,7 +2,7 @@ use sabry::sassy;
sassy!(style "src/style.scss");
sassy!(utils {
sassy!(utils {"
@mixin flex($direction, $align, $justify, $gap: .5rem) {
display: flex;
list-style: none;
@ -29,9 +29,9 @@ sassy!(utils {
justify-content: $justify;
}
}
});
"});
sassy!(theme {
sassy!(theme {"
$thm-surface-primary: #2b2a29;
$thm-surface-secondary: #6C6C6C;
$thm-surface-tertiary: #4C4C4C;
@ -75,10 +75,10 @@ sassy!(theme {
color: $thm-text-accent;
}
}
});
"});
sassy!(tokens {
@use "theme";
sassy!(tokens {"
@use 'theme';
@mixin clickable($style: accent, $scale: 1.2, $clickscale: 0.9){
@if $style == accent{
@ -103,4 +103,4 @@ sassy!(tokens {
transform: scale($clickscale);
}
}
});
"});