Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import css from '@emotion/css'
import { mq, fonts } from './style'
import prismStyles from 'react-live/lib/constants/css.js'
import draculaStyles from './dracula-prism'
const globalStyles = css`
${prismStyles
.replace('prism-code', 'prism-code,pre[class*="language-"]')
.replace(/0\.5rem/g, '')} html, body, #___gatsby {
font-family: ${fonts.primary};
width: 100%;
height: 100%;
padding: 0;
margin: 0;
-webkit-font-smoothing: antialiased;
}
.gatsby-highlight,
.prism-code {
${draculaStyles};
pre[class*='language-'] {
${mq({
marginLeft: 0,