-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the syntax highlighting color in the ref doc
- Loading branch information
Showing
5 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
import { ComponentChildren } from "preact"; | ||
|
||
export function StyleKw({ children }: { children?: ComponentChildren }) { | ||
return <span style="color:#F286C4;">{children}</span>; | ||
return ( | ||
<span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">{children}</span> | ||
); | ||
} | ||
|
||
export function StyleStrLit({ children }: { children?: ComponentChildren }) { | ||
return <span style="color:#E7EE98;">{children}</span>; | ||
return ( | ||
<span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">{children}</span> | ||
); | ||
} | ||
|
||
export function StyleTypeRef({ children }: { children?: ComponentChildren }) { | ||
return ( | ||
<span style="color:#97E1F1;font-style:italic;"> | ||
<span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> | ||
{children} | ||
</span> | ||
); | ||
} | ||
|
||
export function StyleCallee({ children }: { children?: ComponentChildren }) { | ||
return <span style="color:#62E884">{children}</span>; | ||
return ( | ||
<span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">{children}</span> | ||
); | ||
} | ||
|
||
export function StyleNum({ children }: { children?: ComponentChildren }) { | ||
return <span style="color:#BF9EEE">{children}</span>; | ||
return ( | ||
<span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">{children}</span> | ||
); | ||
} |