-
Hi all, Context: I am using Theme UI (and MDX) in a Gatsby website. I would like to customize the style (and also leverage Theme UI's dark/light Color Modes) of Unfortunately, it seems What would you suggest me to do? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
hasparus
Aug 21, 2020
Replies: 1 comment 1 reply
-
Hi @lucasrla! You can add // src/gatsby-plugin-theme-ui/components.js (if you are using gatsby-plugin-theme-ui)
const components = {
mark: (props) => {
return <mark sx={{ bg: 'highlight' }} {...props} />;
}
};
export default components; Take a look at |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lucasrla
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @lucasrla!
You can add
mark
to thecomponents
dict.Take a look at