diff --git a/.changeset/lazy-webs-brake.md b/.changeset/lazy-webs-brake.md new file mode 100644 index 0000000000..94d7b5f06a --- /dev/null +++ b/.changeset/lazy-webs-brake.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-api-docs': patch +--- + +Improved styling for dark mode diff --git a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinition.tsx b/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinition.tsx index da9ef198a0..764fe5a0bd 100644 --- a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinition.tsx +++ b/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinition.tsx @@ -125,9 +125,12 @@ const useStyles = makeStyles(theme => ({ }, '& .prose': { color: theme.palette.text.secondary, - '& h3': { + '& h3, code': { color: theme.palette.text.primary, }, + '& a': { + color: theme.palette.link, + }, }, '& .bg-gray-100, .bg-gray-200': { backgroundColor: theme.palette.background.default,