rajinwonderland / react-code-blocks

React code blocks and code snippet components
https://react-code-blocks.rajinwonderland.vercel.app
MIT License
611 stars 82 forks source link

`CopyBlock` prop 'theme' incompatible with `CodeBlock` prop 'theme' #161

Open fnune opened 4 months ago

fnune commented 4 months ago

image

I'd have expected the types to be compatible, but they don't overlap sufficiently.

It seems like CodeBlock's theme prop is styled-component's DefaultTheme interface, whereas CopyBlock's is this library's own Theme interface.

Should they be the same? Otherwise how can I safely pass e.g. the monoBlue theme to CodeBlock?