We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6393959 commit 58c8e3fCopy full SHA for 58c8e3f
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