We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7f42f7 commit c9e291eCopy full SHA for c9e291e
src/common/css.ts
@@ -0,0 +1,9 @@
1
+
2
+/**
3
+ * px = em * parentElementFontSize
4
+ * @param em em value
5
+ * TODO: Use Template Literal Types replace fontSize typing
6
+ */
7
+export function em2Px(em: number, fontSize: number): number {
8
+ return em * fontSize;
9
+}
0 commit comments