From c1fbfaf9a9abc3415d5d09c80873d74f40ac1d26 Mon Sep 17 00:00:00 2001 From: GOMA Date: Tue, 15 Jul 2025 12:31:46 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feature:=20Add=20function=20to=20co?= =?UTF-8?q?nvert=20pixel=20to=20rem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions/_functions.scss | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/functions/_functions.scss diff --git a/src/functions/_functions.scss b/src/functions/_functions.scss new file mode 100644 index 0000000..5b2b7ce --- /dev/null +++ b/src/functions/_functions.scss @@ -0,0 +1,6 @@ +@use "sass:math"; + +// Convert pixel to rem +@function convert($size) { + @return (math.div($size, 16px)) * 1rem; +} \ No newline at end of file