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 ipsum
u-textPlaceholder Lorem ipsum
+
+
+
u-textNeutral0 Lorem ipsum
+
u-textNeutral25 Lorem ipsum
+
u-textNeutral50 Lorem ipsum
+
u-textNeutral100 Lorem ipsum
+
u-textNeutral200 Lorem ipsum
+
u-textNeutral300 Lorem ipsum
+
u-textNeutral400 Lorem ipsum
+
u-textNeutral500 Lorem ipsum
+
u-textNeutral600 Lorem ipsum
+
u-textNeutral700 Lorem ipsum
+
u-textNeutral800 Lorem ipsum
+
u-textNeutral900 Lorem ipsum
+
+
+
u-textProduct0 Lorem ipsum
+
u-textProduct25 Lorem ipsum
+
u-textProduct50 Lorem ipsum
+
u-textProduct100 Lorem ipsum
+
u-textProduct200 Lorem ipsum
+
u-textProduct300 Lorem ipsum
+
u-textProduct400 Lorem ipsum
+
u-textProduct500 Lorem ipsum
+
u-textProduct600 Lorem ipsum
+
u-textProduct700 Lorem ipsum
+
u-textProduct800 Lorem ipsum
+
u-textProduct900 Lorem ipsum
+
+
+
u-textSuccess50 Lorem ipsum
+
u-textSuccess100 Lorem ipsum
+
u-textSuccess200 Lorem ipsum
+
u-textSuccess300 Lorem ipsum
+
u-textSuccess400 Lorem ipsum
+
u-textSuccess500 Lorem ipsum
+
u-textSuccess600 Lorem ipsum
+
u-textSuccess700 Lorem ipsum
+
u-textSuccess800 Lorem ipsum
+
u-textSuccess900 Lorem ipsum
+
+
+
u-textWarning50 Lorem ipsum
+
u-textWarning100 Lorem ipsum
+
u-textWarning200 Lorem ipsum
+
u-textWarning300 Lorem ipsum
+
u-textWarning400 Lorem ipsum
+
u-textWarning500 Lorem ipsum
+
u-textWarning600 Lorem ipsum
+
u-textWarning700 Lorem ipsum
+
u-textWarning800 Lorem ipsum
+
u-textWarning900 Lorem ipsum
+
+
+
u-textCritical50 Lorem ipsum
+
u-textCritical100 Lorem ipsum
+
u-textCritical200 Lorem ipsum
+
u-textCritical300 Lorem ipsum
+
u-textCritical400 Lorem ipsum
+
u-textCritical500 Lorem ipsum
+
u-textCritical600 Lorem ipsum
+
u-textCritical700 Lorem ipsum
+
u-textCritical800 Lorem ipsum
+
u-textCritical900 Lorem ipsum
`; }