import React from 'react'; import { css, Global } from '@emotion/react'; import { useTheme } from 'antd-style'; export default () => { const token = useTheme(); return ( code[class*='language-'], pre[class*='language-'] { background: #f5f5f5; } /* Inline code */ :not(pre) > code[class*='language-'] { padding: 0.1em; white-space: normal; border-radius: 0.3em; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: slategray; } .token.punctuation { color: #999; } .namespace { opacity: 0.7; } .markdown { .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #f81d22; } .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #0b8235; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #0b8235; } .token.atrule, .token.attr-value, .token.keyword { color: #008dff; } .token.function { color: #f81d22; } .token.regex, .token.important, .token.variable { color: #e90; } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; } } `} /> ); };