@@ -6,27 +6,33 @@ export const defaultColor = token('colors.ink.background-secondary');
6
6
7
7
const strengthStyles = {
8
8
[ PasswordStrength . NoScore ] : {
9
- strengthColor : token ( 'colors.red.action-primary-default' ) ,
9
+ strengthColorLightMode : token ( 'colors.red.background-secondary' ) ,
10
+ strengthColorDarkMode : token ( 'colors.red.border' ) ,
10
11
strengthText : 'Poor' ,
11
12
} ,
12
13
[ PasswordStrength . PoorScore ] : {
13
- strengthColor : token ( 'colors.red.action-primary-default' ) ,
14
+ strengthColorLightMode : token ( 'colors.red.background-secondary' ) ,
15
+ strengthColorDarkMode : token ( 'colors.red.border' ) ,
14
16
strengthText : 'Poor' ,
15
17
} ,
16
18
[ PasswordStrength . WeakScore ] : {
17
- strengthColor : token ( 'colors.yellow.action-primary-default' ) ,
19
+ strengthColorLightMode : token ( 'colors.yellow.background-secondary' ) ,
20
+ strengthColorDarkMode : token ( 'colors.yellow.border' ) ,
18
21
strengthText : 'Weak' ,
19
22
} ,
20
23
[ PasswordStrength . AverageScore ] : {
21
- strengthColor : token ( 'colors.yellow.action-primary-default' ) ,
24
+ strengthColorLightMode : token ( 'colors.yellow.background-secondary' ) ,
25
+ strengthColorDarkMode : token ( 'colors.yellow.border' ) ,
22
26
strengthText : 'Average' ,
23
27
} ,
24
28
[ PasswordStrength . StrongScore ] : {
25
- strengthColor : token ( 'colors.yellow.action-primary-default' ) ,
29
+ strengthColorLightMode : token ( 'colors.yellow.background-secondary' ) ,
30
+ strengthColorDarkMode : token ( 'colors.yellow.border' ) ,
26
31
strengthText : 'Average' ,
27
32
} ,
28
33
[ PasswordStrength . MeetsAllRequirements ] : {
29
- strengthColor : token ( 'colors.green.action-primary-default' ) ,
34
+ strengthColorLightMode : token ( 'colors.green.background-secondary' ) ,
35
+ strengthColorDarkMode : token ( 'colors.green.border' ) ,
30
36
strengthText : 'Strong' ,
31
37
} ,
32
38
} ;
0 commit comments