Skip to content

Commit fc6918c

Browse files
authored
[CLOVER-481] Add text-success color token to foundations (#463)
1 parent 3b97d84 commit fc6918c

File tree

10 files changed

+113
-0
lines changed

10 files changed

+113
-0
lines changed

packages/bpk-foundations-android/tokens/base.raw.android.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,13 @@
17631763
"originalValue": "{!WHITE}",
17641764
"name": "TEXT_PRIMARY_NIGHT"
17651765
},
1766+
"TEXT_SUCCESS_NIGHT": {
1767+
"type": "color",
1768+
"category": "text-colors",
1769+
"value": "#62f1c6ff",
1770+
"originalValue": "{!NIGHT_GREEN_SPOT}",
1771+
"name": "TEXT_SUCCESS_NIGHT"
1772+
},
17661773
"TEXT_DISABLED_DAY": {
17671774
"type": "color",
17681775
"category": "text-colors",
@@ -1777,6 +1784,13 @@
17771784
"originalValue": "{!CHARCOAL}",
17781785
"name": "TEXT_PRIMARY_DAY"
17791786
},
1787+
"TEXT_SUCCESS_DAY": {
1788+
"type": "color",
1789+
"category": "text-colors",
1790+
"value": "#0c838aff",
1791+
"originalValue": "{!GREEN_SPOT}",
1792+
"name": "TEXT_SUCCESS_DAY"
1793+
},
17801794
"TEXT_ERROR_NIGHT": {
17811795
"type": "color",
17821796
"category": "text-colors",
@@ -3257,6 +3271,15 @@
32573271
"darkValue": "#ffffffff",
32583272
"originalDarkValue": "{!WHITE}"
32593273
},
3274+
"TEXT_SUCCESS_COLOR": {
3275+
"type": "color",
3276+
"category": "text-colors",
3277+
"value": "#0c838aff",
3278+
"originalValue": "{!GREEN_SPOT}",
3279+
"name": "TEXT_SUCCESS_COLOR",
3280+
"darkValue": "#62f1c6ff",
3281+
"originalDarkValue": "{!NIGHT_GREEN_SPOT}"
3282+
},
32603283
"TEXT_ERROR_COLOR": {
32613284
"type": "color",
32623285
"category": "text-colors",
@@ -3994,8 +4017,10 @@
39944017
"TEXT_LINK_DAY",
39954018
"TEXT_HERO_DAY",
39964019
"TEXT_PRIMARY_NIGHT",
4020+
"TEXT_SUCCESS_NIGHT",
39974021
"TEXT_DISABLED_DAY",
39984022
"TEXT_PRIMARY_DAY",
4023+
"TEXT_SUCCESS_DAY",
39994024
"TEXT_ERROR_NIGHT",
40004025
"TEXT_ERROR_DAY",
40014026
"TEXT_PRIMARY_INVERSE_NIGHT",
@@ -4200,6 +4225,7 @@
42004225
"TEXT_HERO_COLOR",
42014226
"TEXT_DISABLED_COLOR",
42024227
"TEXT_PRIMARY_COLOR",
4228+
"TEXT_SUCCESS_COLOR",
42034229
"TEXT_ERROR_COLOR",
42044230
"TEXT_PRIMARY_INVERSE_COLOR",
42054231
"TEXT_SECONDARY_COLOR",

packages/bpk-foundations-common/base/colors/text.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
"TEXT_DISABLED_ON_DARK_NIGHT": {
3838
"value": "{!WHITE_ALPHA_50}"
3939
},
40+
"TEXT_SUCCESS_DAY": {
41+
"value": "{!GREEN_SPOT}"
42+
},
43+
"TEXT_SUCCESS_NIGHT": {
44+
"value": "{!NIGHT_GREEN_SPOT}"
45+
},
4046
"TEXT_ERROR_DAY": {
4147
"value": "{!BERRY}"
4248
},

packages/bpk-foundations-ios/tokens/base.ios.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,13 @@
14161416
"originalValue": "{!WHITE}",
14171417
"name": "textPrimaryNight"
14181418
},
1419+
{
1420+
"type": "color",
1421+
"category": "text-colors",
1422+
"value": "#62f1c6ff",
1423+
"originalValue": "{!NIGHT_GREEN_SPOT}",
1424+
"name": "textSuccessNight"
1425+
},
14191426
{
14201427
"type": "color",
14211428
"category": "text-colors",
@@ -1430,6 +1437,13 @@
14301437
"originalValue": "{!CHARCOAL}",
14311438
"name": "textPrimaryDay"
14321439
},
1440+
{
1441+
"type": "color",
1442+
"category": "text-colors",
1443+
"value": "#0c838aff",
1444+
"originalValue": "{!GREEN_SPOT}",
1445+
"name": "textSuccessDay"
1446+
},
14331447
{
14341448
"type": "color",
14351449
"category": "text-colors",
@@ -3099,6 +3113,15 @@
30993113
"darkValue": "#ffffffff",
31003114
"originalDarkValue": "{!WHITE}"
31013115
},
3116+
{
3117+
"type": "color",
3118+
"category": "text-colors",
3119+
"value": "#0c838aff",
3120+
"originalValue": "{!GREEN_SPOT}",
3121+
"name": "textSuccessColor",
3122+
"darkValue": "#62f1c6ff",
3123+
"originalDarkValue": "{!NIGHT_GREEN_SPOT}"
3124+
},
31023125
{
31033126
"type": "color",
31043127
"category": "text-colors",

packages/bpk-foundations-ios/tokens/base.raw.ios.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,13 @@
17631763
"originalValue": "{!WHITE}",
17641764
"name": "TEXT_PRIMARY_NIGHT"
17651765
},
1766+
"TEXT_SUCCESS_NIGHT": {
1767+
"type": "color",
1768+
"category": "text-colors",
1769+
"value": "#62f1c6ff",
1770+
"originalValue": "{!NIGHT_GREEN_SPOT}",
1771+
"name": "TEXT_SUCCESS_NIGHT"
1772+
},
17661773
"TEXT_DISABLED_DAY": {
17671774
"type": "color",
17681775
"category": "text-colors",
@@ -1777,6 +1784,13 @@
17771784
"originalValue": "{!CHARCOAL}",
17781785
"name": "TEXT_PRIMARY_DAY"
17791786
},
1787+
"TEXT_SUCCESS_DAY": {
1788+
"type": "color",
1789+
"category": "text-colors",
1790+
"value": "#0c838aff",
1791+
"originalValue": "{!GREEN_SPOT}",
1792+
"name": "TEXT_SUCCESS_DAY"
1793+
},
17801794
"TEXT_ERROR_NIGHT": {
17811795
"type": "color",
17821796
"category": "text-colors",
@@ -3446,6 +3460,15 @@
34463460
"darkValue": "#ffffffff",
34473461
"originalDarkValue": "{!WHITE}"
34483462
},
3463+
"TEXT_SUCCESS_COLOR": {
3464+
"type": "color",
3465+
"category": "text-colors",
3466+
"value": "#0c838aff",
3467+
"originalValue": "{!GREEN_SPOT}",
3468+
"name": "TEXT_SUCCESS_COLOR",
3469+
"darkValue": "#62f1c6ff",
3470+
"originalDarkValue": "{!NIGHT_GREEN_SPOT}"
3471+
},
34493472
"TEXT_ERROR_COLOR": {
34503473
"type": "color",
34513474
"category": "text-colors",
@@ -4192,8 +4215,10 @@
41924215
"TEXT_LINK_DAY",
41934216
"TEXT_HERO_DAY",
41944217
"TEXT_PRIMARY_NIGHT",
4218+
"TEXT_SUCCESS_NIGHT",
41954219
"TEXT_DISABLED_DAY",
41964220
"TEXT_PRIMARY_DAY",
4221+
"TEXT_SUCCESS_DAY",
41974222
"TEXT_ERROR_NIGHT",
41984223
"TEXT_ERROR_DAY",
41994224
"TEXT_PRIMARY_INVERSE_NIGHT",
@@ -4425,6 +4450,7 @@
44254450
"TEXT_HERO_COLOR",
44264451
"TEXT_DISABLED_COLOR",
44274452
"TEXT_PRIMARY_COLOR",
4453+
"TEXT_SUCCESS_COLOR",
44284454
"TEXT_ERROR_COLOR",
44294455
"TEXT_PRIMARY_INVERSE_COLOR",
44304456
"TEXT_SECONDARY_COLOR",

packages/bpk-foundations-web/tokens/base.common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ module.exports = {
6767
textLinkDay: "rgb(0, 98, 227)",
6868
textHeroDay: "rgb(0, 98, 227)",
6969
textPrimaryNight: "rgb(255, 255, 255)",
70+
textSuccessNight: "rgb(98, 241, 198)",
7071
textDisabledDay: "rgba(0, 0, 0, 0.2)",
7172
textPrimaryDay: "rgb(22, 22, 22)",
73+
textSuccessDay: "rgb(12, 131, 138)",
7274
textErrorNight: "rgb(255, 100, 156)",
7375
textErrorDay: "rgb(231, 8, 102)",
7476
textPrimaryInverseNight: "rgb(1, 9, 19)",

packages/bpk-foundations-web/tokens/base.default.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,14 @@ $bpk-text-hero-day: rgb(0, 98, 227) !default;
114114
/// @group text-colors
115115
$bpk-text-primary-night: rgb(255, 255, 255) !default;
116116
/// @group text-colors
117+
$bpk-text-success-night: rgb(98, 241, 198) !default;
118+
/// @group text-colors
117119
$bpk-text-disabled-day: rgba(0, 0, 0, 0.2) !default;
118120
/// @group text-colors
119121
$bpk-text-primary-day: rgb(22, 22, 22) !default;
120122
/// @group text-colors
123+
$bpk-text-success-day: rgb(12, 131, 138) !default;
124+
/// @group text-colors
121125
$bpk-text-error-night: rgb(255, 100, 156) !default;
122126
/// @group text-colors
123127
$bpk-text-error-day: rgb(231, 8, 102) !default;

packages/bpk-foundations-web/tokens/base.es6.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ export declare const textDisabledNight = "rgba(255, 255, 255, 0.2)" as const;
6565
export declare const textLinkDay = "rgb(0, 98, 227)" as const;
6666
export declare const textHeroDay = "rgb(0, 98, 227)" as const;
6767
export declare const textPrimaryNight = "rgb(255, 255, 255)" as const;
68+
export declare const textSuccessNight = "rgb(98, 241, 198)" as const;
6869
export declare const textDisabledDay = "rgba(0, 0, 0, 0.2)" as const;
6970
export declare const textPrimaryDay = "rgb(22, 22, 22)" as const;
71+
export declare const textSuccessDay = "rgb(12, 131, 138)" as const;
7072
export declare const textErrorNight = "rgb(255, 100, 156)" as const;
7173
export declare const textErrorDay = "rgb(231, 8, 102)" as const;
7274
export declare const textPrimaryInverseNight = "rgb(1, 9, 19)" as const;
@@ -819,8 +821,10 @@ textDisabledNight,
819821
textLinkDay,
820822
textHeroDay,
821823
textPrimaryNight,
824+
textSuccessNight,
822825
textDisabledDay,
823826
textPrimaryDay,
827+
textSuccessDay,
824828
textErrorNight,
825829
textErrorDay,
826830
textPrimaryInverseNight,

packages/bpk-foundations-web/tokens/base.es6.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ export const textDisabledNight = "rgba(255, 255, 255, 0.2)";
6565
export const textLinkDay = "rgb(0, 98, 227)";
6666
export const textHeroDay = "rgb(0, 98, 227)";
6767
export const textPrimaryNight = "rgb(255, 255, 255)";
68+
export const textSuccessNight = "rgb(98, 241, 198)";
6869
export const textDisabledDay = "rgba(0, 0, 0, 0.2)";
6970
export const textPrimaryDay = "rgb(22, 22, 22)";
71+
export const textSuccessDay = "rgb(12, 131, 138)";
7072
export const textErrorNight = "rgb(255, 100, 156)";
7173
export const textErrorDay = "rgb(231, 8, 102)";
7274
export const textPrimaryInverseNight = "rgb(1, 9, 19)";
@@ -819,8 +821,10 @@ textDisabledNight,
819821
textLinkDay,
820822
textHeroDay,
821823
textPrimaryNight,
824+
textSuccessNight,
822825
textDisabledDay,
823826
textPrimaryDay,
827+
textSuccessDay,
824828
textErrorNight,
825829
textErrorDay,
826830
textPrimaryInverseNight,

packages/bpk-foundations-web/tokens/base.raw.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,13 @@
809809
"originalValue": "{!WHITE}",
810810
"name": "TEXT_PRIMARY_NIGHT"
811811
},
812+
"TEXT_SUCCESS_NIGHT": {
813+
"type": "color",
814+
"category": "text-colors",
815+
"value": "rgb(98, 241, 198)",
816+
"originalValue": "{!NIGHT_GREEN_SPOT}",
817+
"name": "TEXT_SUCCESS_NIGHT"
818+
},
812819
"TEXT_DISABLED_DAY": {
813820
"type": "color",
814821
"category": "text-colors",
@@ -823,6 +830,13 @@
823830
"originalValue": "{!CHARCOAL}",
824831
"name": "TEXT_PRIMARY_DAY"
825832
},
833+
"TEXT_SUCCESS_DAY": {
834+
"type": "color",
835+
"category": "text-colors",
836+
"value": "rgb(12, 131, 138)",
837+
"originalValue": "{!GREEN_SPOT}",
838+
"name": "TEXT_SUCCESS_DAY"
839+
},
826840
"TEXT_ERROR_NIGHT": {
827841
"type": "color",
828842
"category": "text-colors",

packages/bpk-foundations-web/tokens/base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,14 @@ $bpk-text-hero-day: rgb(0, 98, 227);
114114
/// @group text-colors
115115
$bpk-text-primary-night: rgb(255, 255, 255);
116116
/// @group text-colors
117+
$bpk-text-success-night: rgb(98, 241, 198);
118+
/// @group text-colors
117119
$bpk-text-disabled-day: rgba(0, 0, 0, 0.2);
118120
/// @group text-colors
119121
$bpk-text-primary-day: rgb(22, 22, 22);
120122
/// @group text-colors
123+
$bpk-text-success-day: rgb(12, 131, 138);
124+
/// @group text-colors
121125
$bpk-text-error-night: rgb(255, 100, 156);
122126
/// @group text-colors
123127
$bpk-text-error-day: rgb(231, 8, 102);

0 commit comments

Comments
 (0)