From 837e0e904c40f7b87561c34ca3f49edd5d8d1c52 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 28 Sep 2023 18:03:43 +0200 Subject: feat(components): replace icons with a generic Icon component Sizes are also predefined and can be set using the `size` prop, so the consumers should no longer adjust the size in CSS. --- src/styles/base/_icons.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/styles/base/_icons.scss (limited to 'src/styles/base') diff --git a/src/styles/base/_icons.scss b/src/styles/base/_icons.scss new file mode 100644 index 0000000..16fdd4a --- /dev/null +++ b/src/styles/base/_icons.scss @@ -0,0 +1,10 @@ +@use "sass:math"; +@use "../abstracts/variables" as var; + +:root { + --icon-size-xs: #{var.icon-size("xs")}; + --icon-size-sm: #{var.icon-size("sm")}; + --icon-size-md: #{var.icon-size("md")}; + --icon-size-lg: #{var.icon-size("lg")}; + --icon-size-xl: #{var.icon-size("xl")}; +} -- cgit v1.2.3