Files
effect-view/packages/docs/src/prism/github-dark.ts
T
ThilawynandJulien Valverdé 19ae5a366d
Publish / publish (push) Successful in 2m1s
Lint / lint (push) Successful in 26s
Redesign docs and upgrade effect-lens/effect (#77)
## Summary
- Redesign the docs site (landing page, code block styling, syntax highlighting, line numbers)
- Upgrade `effect-lens` to `2.0.2-rc.115` and the associated `effect`/`@effect/platform-browser` to `4.0.0-rc.115`
- Bump package version

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: #77
2026-09-16 22:07:21 +02:00

59 lines
1.3 KiB
TypeScript

import type { PrismTheme } from "prism-react-renderer"
/**
* Matches the classic "GitHub Dark" token palette effect.website uses for
* its dark-mode code blocks (extracted from their rendered token styles) -
* prism-react-renderer doesn't ship this one as a preset.
*/
const githubDark: PrismTheme = {
plain: {
color: "#e1e4e8",
backgroundColor: "transparent",
},
styles: [
{
types: ["comment", "prolog", "doctype", "cdata"],
style: { color: "#6a737d" },
},
{
types: ["punctuation", "operator", "entity", "url", "variable"],
style: { color: "#e1e4e8" },
},
{
types: [
"number",
"boolean",
"constant",
"symbol",
"deleted",
"class-name",
"maybe-class-name",
"builtin",
],
style: { color: "#79b8ff" },
},
{
types: ["selector", "attr-name", "string", "char", "inserted", "attr-value"],
style: { color: "#9ecbff" },
},
{
types: ["atrule", "keyword"],
style: { color: "#f97583" },
},
{
types: ["function", "method"],
style: { color: "#b392f0" },
},
{
types: ["regex", "important"],
style: { color: "#ffab70" },
},
{
types: ["tag"],
style: { color: "#85e89d" },
},
],
}
export default githubDark