@@ -37,33 +37,33 @@ function makeBadgeTheme(p: BadgeProps, theme: Theme): React.CSSProperties {
3737 // @TODO (jonasbadalic) these should use feature badge variants
3838 case 'alpha' :
3939 return {
40- color : theme . colors . black ,
41- background : theme . colors . chonk . pink400 ,
40+ color : theme . tokens . content . onVibrant . dark ,
41+ background : theme . tokens . background . promotion . vibrant ,
4242 } ;
4343 case 'beta' :
4444 return {
45- color : theme . colors . black ,
46- background : theme . colors . chonk . yellow400 ,
45+ color : theme . tokens . content . onVibrant . dark ,
46+ background : theme . tokens . background . warning . vibrant ,
4747 } ;
4848 case 'new' :
4949 return {
50- color : theme . colors . black ,
51- background : theme . colors . chonk . green400 ,
50+ color : theme . tokens . content . onVibrant . dark ,
51+ background : theme . tokens . background . success . vibrant ,
5252 } ;
5353 case 'experimental' :
5454 return {
55- color : theme . colors . gray500 ,
56- background : theme . colors . gray100 ,
55+ color : theme . tokens . content . secondary ,
56+ background : theme . tokens . background . transparent . neutral . muted ,
5757 } ;
5858 case 'muted' :
5959 return {
60- color : theme . colors . gray500 ,
61- background : theme . colors . gray100 ,
60+ color : theme . tokens . content . secondary ,
61+ background : theme . tokens . background . transparent . neutral . muted ,
6262 } ;
6363 case 'internal' :
6464 return {
65- color : theme . colors . gray500 ,
66- background : theme . colors . gray100 ,
65+ color : theme . tokens . content . secondary ,
66+ background : theme . tokens . background . transparent . neutral . muted ,
6767 } ;
6868 // End feature badge variants
6969 // Highlight maps to info badge for now, but the highlight variant should be removed
@@ -76,22 +76,22 @@ function makeBadgeTheme(p: BadgeProps, theme: Theme): React.CSSProperties {
7676 case 'promotion' :
7777 return {
7878 color : theme . tokens . content . promotion ,
79- background : theme . colors . pink100 ,
79+ background : theme . tokens . background . transparent . promotion . muted ,
8080 } ;
8181 case 'danger' :
8282 return {
8383 color : theme . tokens . content . danger ,
84- background : theme . colors . red100 ,
84+ background : theme . tokens . background . transparent . danger . muted ,
8585 } ;
8686 case 'warning' :
8787 return {
8888 color : theme . tokens . content . warning ,
89- background : theme . colors . yellow100 ,
89+ background : theme . tokens . background . transparent . warning . muted ,
9090 } ;
9191 case 'success' :
9292 return {
9393 color : theme . tokens . content . success ,
94- background : theme . colors . green100 ,
94+ background : theme . tokens . background . transparent . success . muted ,
9595 } ;
9696 default :
9797 unreachable ( p . variant ) ;
0 commit comments