mirror of
https://github.com/System-End/site.git
synced 2026-04-19 18:35:12 +00:00
Merge pull request #1332 from kcoderhtml/syntax-highlighting
feat: syntax highlighting with react-syntax-highlighter
This commit is contained in:
commit
a1075ecfe2
2 changed files with 12 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ const ProjectView = ({
|
|||
}, [readMeLink])
|
||||
|
||||
return (
|
||||
// export a css property for each of the color and dark color
|
||||
<div
|
||||
{...props}
|
||||
className="gaegu"
|
||||
|
|
@ -108,6 +109,15 @@ const ProjectView = ({
|
|||
minHeight: '100vh'
|
||||
}}
|
||||
>
|
||||
<style>
|
||||
{`
|
||||
* {
|
||||
--color: ${color};
|
||||
--dark-color: ${darkColor};
|
||||
--text-color: ${textColor};
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
<div
|
||||
sx={{
|
||||
py: 4,
|
||||
|
|
|
|||
|
|
@ -364,6 +364,8 @@ SOFTWARE.
|
|||
|
||||
.reactMarkDown pre div {
|
||||
margin: 0 !important;
|
||||
background-color: var(--color) !important;
|
||||
filter: brightness(105%);
|
||||
}
|
||||
|
||||
.reactMarkDown code, .reactMarkDown pre tt {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue