From f372cc2cb9f4083b6c835e25def401ac1ce0b6ca Mon Sep 17 00:00:00 2001 From: Jeremias Peier Date: Wed, 24 Apr 2024 21:05:26 +0200 Subject: [PATCH] refactor: reduce typography output --- src/components/core/styles/typography.scss | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/components/core/styles/typography.scss b/src/components/core/styles/typography.scss index 0d4e18dbc86..81db616dd39 100644 --- a/src/components/core/styles/typography.scss +++ b/src/components/core/styles/typography.scss @@ -82,28 +82,37 @@ sbb-breadcrumb-group:not(:defined) { pointer-events: all; } +.sbb-text-xxs, +.sbb-text-xs, +.sbb-text-s, +.sbb-text-m, +.sbb-text-l, +.sbb-text-xl { + @include typo.text; +} + .sbb-text-xxs { - @include typo.text-xxs--regular; + --sbb-text-font-size: var(--sbb-font-size-text-xxs); } .sbb-text-xs { - @include typo.text-xs--regular; + --sbb-text-font-size: var(--sbb-font-size-text-xs); } .sbb-text-s { - @include typo.text-s--regular; + --sbb-text-font-size: var(--sbb-font-size-text-s); } .sbb-text-m { - @include typo.text-m--regular; + --sbb-text-font-size: var(--sbb-font-size-text-m); } .sbb-text-l { - @include typo.text-l--regular; + --sbb-text-font-size: var(--sbb-font-size-text-l); } .sbb-text-xl { - @include typo.text-xl--regular; + --sbb-text-font-size: var(--sbb-font-size-text-xl); } .sbb-text--bold {