From 4e9a0d3745889c1c1db4dd84b03a29c2bf29961a Mon Sep 17 00:00:00 2001 From: Niclas Date: Fri, 13 Dec 2024 10:08:02 +0100 Subject: [PATCH] feat: font sizes utility --- source/sass/utility/_text.scss | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/sass/utility/_text.scss b/source/sass/utility/_text.scss index 54e77f77b..9713abf97 100644 --- a/source/sass/utility/_text.scss +++ b/source/sass/utility/_text.scss @@ -39,6 +39,26 @@ overflow: visible; } +/* Font size */ +$font-sizes: ( + "base": $font-size-base, + "lead": $font-size-lead, + "caption": $font-size-caption, + "marketing": $font-size-marketing, + "headline": $font-size-headline, + "title": $font-size-title, + "subtitle": $font-size-subtitle, + "subtitle-small": $font-size-subtitle-small, + "meta": $font-size-meta, + "brand": $font-size-brand +); + +@each $name, $value in $font-sizes { + .u-font-size-#{$name} { + font-size: $value; + } +} + /* Text size */ .u-text-small {