Skip to content

Commit bad10be

Browse files
auricomclaude
andcommitted
docs(style): address PR review feedback
- Add `"type": "dark"` to ev-dark.json theme manifest - Raise punctuation token contrast from #505050 to #767676 (WCAG AA) - Align --vp-code-block-color CSS var with ev-dark default text (#dbd7ca) - Use ThemeRegistration type instead of `as any` in config.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ff85ff0 commit bad10be

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { withMermaid } from "vitepress-plugin-mermaid";
22
import { useSidebar } from "vitepress-openapi";
33
import spec from "../src/openapi-rpc.json" with { type: "json" };
4+
import type { ThemeRegistration } from "shiki";
45
import evDarkTheme from "./ev-dark.json" with { type: "json" };
56

67
const telegramSVG = ` <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -28,7 +29,7 @@ export default withMermaid({
2829
base: base,
2930

3031
markdown: {
31-
theme: evDarkTheme as any,
32+
theme: evDarkTheme as ThemeRegistration,
3233
},
3334
sitemap: {
3435
hostname: "https://docs.ev.xyz",

docs/.vitepress/ev-dark.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "ev-dark",
33
"displayName": "Evolve Dark",
4+
"type": "dark",
45
"colors": {
56
"editor.background": "#000000",
67
"editor.foreground": "#dbd7ca"
@@ -33,7 +34,7 @@
3334
"punctuation.definition.string.begin.html.vue",
3435
"punctuation.definition.string.end.html.vue"
3536
],
36-
"settings": { "foreground": "#505050" }
37+
"settings": { "foreground": "#767676" }
3738
},
3839
{
3940
"scope": ["constant", "entity.name.constant", "variable.language", "meta.definition.variable"],

docs/.vitepress/theme/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153

154154
:root {
155155
--vp-code-block-bg: #000000;
156-
--vp-code-block-color: #ffffff;
156+
--vp-code-block-color: #dbd7ca;
157157
--vp-code-block-divider-color: rgba(255, 255, 255, 0.1);
158158

159159
/* Inline code */

0 commit comments

Comments
 (0)