Skip to content

Commit

Permalink
Merge branch 'dhs17y2adonchia-patch-2' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaydek Michels-Gualtieri committed Dec 19, 2020
2 parents d06b905 + 590eeb6 commit ed06e06
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions src/duomo/core/font-weight.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
@use "../helpers" as *;

$-opts: (
thin: 100,
extralight: 200,
light: 300,
bold-none: 400,
medium: 500,
semibold: 600,
bold: 700,
extrabold: 800,
black: 900,
);
// $-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 $mk, $mv in $-opts {
#{variant($mk, $v)} {
font-weight: $mv;
@each $rv in $-opts {
#{variant($rv, $v)} {
font-weight: $rv;
}
}
}
Expand Down

0 comments on commit ed06e06

Please sign in to comment.