-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
385 additions
and
401 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> | ||
); | ||
} |
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
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
Oops, something went wrong.