Forráskód Böngészése

Revert "use tailwind font"

This reverts commit 84350cc7a584e00742e384adc6af593f7eee1bbd.
nidhi-singh02 2 hónapja
szülő
commit
742bdf80ac

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

@@ -79,7 +79,7 @@
 }
 
 .resultValue {
-  font-family: var(--font-mono);
+  font-family: theme.font-family("monospace");
   font-size: theme.font-size("sm");
   margin: 0;
   margin-bottom: theme.spacing(2);

+ 15 - 0
packages/component-library/src/theme.scss

@@ -30,6 +30,21 @@ $font-weight: (
   @return map-get-strict($font-weight, $weight);
 }
 
+$font-family: (
+  "monospace": (
+    "ui-monospace",
+    "sfmono-regular",
+    "consolas",
+    "Liberation Mono",
+    "menlo",
+    "monospace",
+  ),
+);
+
+@function font-family($family) {
+  @return map-get-strict($font-family, $family);
+}
+
 $font-size: (
   "xxs": 0.6875rem,
   "xs": 0.75rem,