@@ -31,6 +31,11 @@ const iconSlugOverrides: Record<string, string> = {
3131 visualstudiocode : "microsoft" ,
3232}
3333
34+ const iconColorOverrides : Record < string , string > = {
35+ nextdotjs : "#0070F3" ,
36+ angular : "#DD0031" ,
37+ }
38+
3439const simpleIconBySlug = ( ( ) => {
3540 const map = new Map < string , SimpleIcon > ( )
3641 const isSimpleIcon = ( icon : unknown ) : icon is SimpleIcon =>
@@ -658,6 +663,8 @@ export function InstructionsWizard({ onClose, selectedFileId }: InstructionsWiza
658663 const simpleIconData = normalizedIconSlug
659664 ? simpleIconBySlug . get ( normalizedIconSlug ) ?? null
660665 : null
666+ const iconColor = ( normalizedIconSlug && iconColorOverrides [ normalizedIconSlug ] )
667+ ?? ( simpleIconData ? getAccessibleIconColor ( simpleIconData . hex ) : undefined )
661668 const fallbackInitials = answer . label
662669 . split ( " " )
663670 . map ( ( part ) => part . charAt ( 0 ) )
@@ -671,8 +678,8 @@ export function InstructionsWizard({ onClose, selectedFileId }: InstructionsWiza
671678 className = "flex h-10 w-10 items-center justify-center rounded-xl bg-secondary/40 text-muted-foreground ring-1 ring-border/40"
672679 >
673680 < span
674- className = "inline-flex h-6 w-6 items-center justify-center text-current [&>svg]:h-full [&>svg]:w-full"
675- style = { { color : getAccessibleIconColor ( simpleIconData . hex ) } }
681+ className = "inline-flex h-6 w-6 items-center justify-center text-current [&>svg]:h-full [&>svg]:w-full"
682+ style = { { color : iconColor } }
676683 dangerouslySetInnerHTML = { { __html : getSimpleIconMarkup ( simpleIconData ) } }
677684 />
678685 </ span >
0 commit comments