diff --git a/packages/scss/src/commons/core.scss b/packages/scss/src/commons/core.scss index f3a4611b63..0e567a5928 100644 --- a/packages/scss/src/commons/core.scss +++ b/packages/scss/src/commons/core.scss @@ -109,6 +109,19 @@ $overflow: 'hidden', 'auto', 'visible', 'scroll'; color: var(--palettes-#{$palette}-700) #{$suffix}; } } + + @each $palette in list.join(list.join(config.$palettesStates, config.$palettesDefault), config.$palettesProduct) { + $paletteExists: map.get(config.$palettesInterpolation, $palette); + @if $paletteExists { + @each $shade in config.$palettesShades { + @if map.get($paletteExists, $shade) { + .u-text#{transform.capitalize($palette)}#{$shade} { + color: var(--palettes-#{$palette}-#{$shade}) #{$suffix}; + } + } + } + } + } } @mixin borderRadius($suffix: '!important') { diff --git a/stories/documentation/integration/utilities/text-color.stories.ts b/stories/documentation/integration/utilities/text-color.stories.ts index f7ba284c87..48c39e0b46 100644 --- a/stories/documentation/integration/utilities/text-color.stories.ts +++ b/stories/documentation/integration/utilities/text-color.stories.ts @@ -34,6 +34,70 @@ function getTemplate(args: TextColorStory): string {
u-textLight
Lorem ipsumu-textPlaceholder
Lorem ipsumu-textNeutral0
Lorem ipsumu-textNeutral25
Lorem ipsumu-textNeutral50
Lorem ipsumu-textNeutral100
Lorem ipsumu-textNeutral200
Lorem ipsumu-textNeutral300
Lorem ipsumu-textNeutral400
Lorem ipsumu-textNeutral500
Lorem ipsumu-textNeutral600
Lorem ipsumu-textNeutral700
Lorem ipsumu-textNeutral800
Lorem ipsumu-textNeutral900
Lorem ipsumu-textProduct0
Lorem ipsumu-textProduct25
Lorem ipsumu-textProduct50
Lorem ipsumu-textProduct100
Lorem ipsumu-textProduct200
Lorem ipsumu-textProduct300
Lorem ipsumu-textProduct400
Lorem ipsumu-textProduct500
Lorem ipsumu-textProduct600
Lorem ipsumu-textProduct700
Lorem ipsumu-textProduct800
Lorem ipsumu-textProduct900
Lorem ipsumu-textSuccess50
Lorem ipsumu-textSuccess100
Lorem ipsumu-textSuccess200
Lorem ipsumu-textSuccess300
Lorem ipsumu-textSuccess400
Lorem ipsumu-textSuccess500
Lorem ipsumu-textSuccess600
Lorem ipsumu-textSuccess700
Lorem ipsumu-textSuccess800
Lorem ipsumu-textSuccess900
Lorem ipsumu-textWarning50
Lorem ipsumu-textWarning100
Lorem ipsumu-textWarning200
Lorem ipsumu-textWarning300
Lorem ipsumu-textWarning400
Lorem ipsumu-textWarning500
Lorem ipsumu-textWarning600
Lorem ipsumu-textWarning700
Lorem ipsumu-textWarning800
Lorem ipsumu-textWarning900
Lorem ipsumu-textCritical50
Lorem ipsumu-textCritical100
Lorem ipsumu-textCritical200
Lorem ipsumu-textCritical300
Lorem ipsumu-textCritical400
Lorem ipsumu-textCritical500
Lorem ipsumu-textCritical600
Lorem ipsumu-textCritical700
Lorem ipsumu-textCritical800
Lorem ipsumu-textCritical900
Lorem ipsum