Skip to content

Commit

Permalink
Refactor code.js to add support for function token color
Browse files Browse the repository at this point in the history
  • Loading branch information
jpg619 committed Oct 2, 2024
1 parent e6fe620 commit 349e9f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mdx/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ function getCustomTokenStyle(tokenProps) {
return {...style, color: '#747458'}
case 'token parameter variable':
return {...style, color: '#277d7b'}
case 'token function':
return {...style, color: '#cf3846'}
default:
return style
}
Expand Down

0 comments on commit 349e9f9

Please sign in to comment.