Skip to content

Commit

Permalink
Updated implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaydek Michels-Gualtieri committed Dec 19, 2020
1 parent 685e1ee commit 590eeb6
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions src/duomo/core/font-weight.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
@use "../helpers" as *;

// $-opts: (
// thin: 100,
// extralight: 200,
// light: 300,
// bold-none: 400,
// medium: 500,
// semibold: 600,
// bold: 700,
// extrabold: 800,
// black: 900,
// );
//
// @mixin font-weight($variants...) {
// @include variants($variants...) using ($v) {
// @each $mk, $mv in $-opts {
// #{variant($mk, $v)} {
// font-weight: $mv;
// }
// }
// }
// }

$-opts: (100, 200, 300, 400, 500, 600, 700, 800, 900);

@mixin font-weight($variants...) {
@include variants($variants...) using ($v) {
@each $rv in $-opts {
#{variant($rv, $v) {
font-weight: $rv;
}
}
}
@include variants($variants...) using ($v) {
@each $rv in $-opts {
#{variant($rv, $v)} {
font-weight: $rv;
}
}
}
}

0 comments on commit 590eeb6

Please sign in to comment.