Skip to content

How does one style/customize an unsuported html tag? <mark> #1147

Answered by hasparus
lucasrla asked this question in General
Discussion options

You must be logged in to vote

Hi @lucasrla!

You can add mark to the components dict.

// 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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lucasrla
Comment options

Answer selected by lucasrla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants