Skip to content

Commit 742bdf8

Browse files
committed
Revert "use tailwind font"
This reverts commit 84350cc.
1 parent 84350cc commit 742bdf8

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

apps/developer-hub/src/components/RewardSimulator/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
}
8080

8181
.resultValue {
82-
font-family: var(--font-mono);
82+
font-family: theme.font-family("monospace");
8383
font-size: theme.font-size("sm");
8484
margin: 0;
8585
margin-bottom: theme.spacing(2);

packages/component-library/src/theme.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@ $font-weight: (
3030
@return map-get-strict($font-weight, $weight);
3131
}
3232

33+
$font-family: (
34+
"monospace": (
35+
"ui-monospace",
36+
"sfmono-regular",
37+
"consolas",
38+
"Liberation Mono",
39+
"menlo",
40+
"monospace",
41+
),
42+
);
43+
44+
@function font-family($family) {
45+
@return map-get-strict($font-family, $family);
46+
}
47+
3348
$font-size: (
3449
"xxs": 0.6875rem,
3550
"xs": 0.75rem,

0 commit comments

Comments
 (0)