summaryrefslogtreecommitdiffstats
path: root/src/_mixins.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/_mixins.scss')
-rw-r--r--src/_mixins.scss38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/_mixins.scss b/src/_mixins.scss
new file mode 100644
index 0000000..49d3b6f
--- /dev/null
+++ b/src/_mixins.scss
@@ -0,0 +1,38 @@
1@use 'sass:list';
2@use 'functions' as fn;
3
4@mixin set-font($basis, $values: ()) {
5 $values: fn.set-font($basis, $values);
6
7 @each $prop, $value in $values {
8 @if $value != null {
9 #{$prop}: $value;
10 }
11 }
12}
13
14@mixin heading-strong($size) {
15 font-size: fn.global-dim(list.join(--heading, $size));
16 color: fn.global-color(--heading);
17}
18
19@mixin heading-medium($size) {
20 @include set-font(--standard, (
21 --line-height: null,
22 --size: fn.global-dim(list.join(--heading, $size)),
23 --weight: bold
24 ));
25
26 color: fn.global-color(--heading);
27}
28
29@mixin heading-faint($size) {
30 @include set-font(--standard, (
31 --line-height: null,
32 --size: fn.global-dim(list.join(--heading, $size)),
33 --weight: 500,
34 --spacing: 1px
35 ));
36
37 color: fn.global-color(--text-mute);
38}