Skip to content

Commit ba2d289

Browse files
committed
WIP
1 parent 49fcd19 commit ba2d289

File tree

3 files changed

+98
-13
lines changed

3 files changed

+98
-13
lines changed

.vitepress/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export default defineConfig({
1313
witLang()
1414
],
1515
theme: {
16-
light: 'github-light',
17-
dark: 'github-dark'
16+
light: 'light-plus',
17+
dark: 'dark-plus'
1818
}
1919
},
2020

.vitepress/theme/custom.css

Lines changed: 94 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
*/
55

66
/**
7-
* Colors - VS Code Modern Theme
7+
* Colors - Orange Brand Theme
88
* -------------------------------------------------------------------------- */
99

1010
:root {
11-
/* Brand colors inspired by VS Code Modern */
12-
--vp-c-brand-1: #005fb8;
13-
--vp-c-brand-2: #0078d4;
14-
--vp-c-brand-3: #106ebe;
11+
/* Brand colors - Orange accent */
12+
--vp-c-brand-1: #c26518;
13+
--vp-c-brand-2: #d97616;
14+
--vp-c-brand-3: #a54f12;
1515

1616
/* Background colors - Light Modern */
1717
--vp-c-bg: #ffffff;
@@ -25,10 +25,10 @@
2525
}
2626

2727
.dark {
28-
/* Brand colors for dark mode */
29-
--vp-c-brand-1: #4fc3f7;
30-
--vp-c-brand-2: #29b6f6;
31-
--vp-c-brand-3: #0288d1;
28+
/* Brand colors for dark mode - Orange accent */
29+
--vp-c-brand-1: #d97616;
30+
--vp-c-brand-2: #f39c12;
31+
--vp-c-brand-3: #e67e22;
3232

3333
/* Background colors - Dark Modern */
3434
--vp-c-bg: #1e1e1e;
@@ -40,4 +40,89 @@
4040
--vp-c-text-1: #cccccc;
4141
--vp-c-text-2: #b0b0b0;
4242
--vp-c-text-3: #808080;
43+
}
44+
45+
/**
46+
* Code Block Enhancements
47+
* -------------------------------------------------------------------------- */
48+
49+
/* Professional styling for all code blocks */
50+
div[class*='language-'] {
51+
border-radius: 8px;
52+
margin: 1.5rem 0;
53+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
54+
}
55+
56+
.dark div[class*='language-'] {
57+
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
58+
}
59+
60+
/* Enhanced WIT syntax blocks */
61+
div[class*='language-wit'] {
62+
border-left: 2px solid rgba(194, 101, 24, 0.33);
63+
background: linear-gradient(to right, rgba(194, 101, 24, 0.01), transparent 50%);
64+
}
65+
66+
.dark div[class*='language-wit'] {
67+
border-left: 2px solid rgba(217, 118, 22, 0.33);
68+
background: linear-gradient(to right, rgba(217, 118, 22, 0.02), transparent 50%);
69+
}
70+
71+
/* Code block padding and font improvements */
72+
div[class*='language-'] pre {
73+
padding: 1.25rem 1.5rem;
74+
line-height: 1.6;
75+
font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
76+
font-size: 0.95em;
77+
}
78+
79+
/* Smooth scrollbar for code blocks */
80+
div[class*='language-'] pre code {
81+
scrollbar-width: thin;
82+
scrollbar-color: var(--vp-c-brand-1) transparent;
83+
}
84+
85+
div[class*='language-'] pre code::-webkit-scrollbar {
86+
height: 8px;
87+
}
88+
89+
div[class*='language-'] pre code::-webkit-scrollbar-track {
90+
background: transparent;
91+
}
92+
93+
div[class*='language-'] pre code::-webkit-scrollbar-thumb {
94+
background: var(--vp-c-brand-1);
95+
border-radius: 4px;
96+
}
97+
98+
div[class*='language-'] pre code::-webkit-scrollbar-thumb:hover {
99+
background: var(--vp-c-brand-2);
100+
}
101+
102+
.dark div[class*='language-'] pre code {
103+
scrollbar-color: var(--vp-c-brand-2) transparent;
104+
}
105+
106+
.dark div[class*='language-'] pre code::-webkit-scrollbar-thumb {
107+
background: var(--vp-c-brand-2);
108+
}
109+
110+
.dark div[class*='language-'] pre code::-webkit-scrollbar-thumb:hover {
111+
background: var(--vp-c-brand-1);
112+
}
113+
114+
/* Copy button styling */
115+
div[class*='language-']:hover>button.copy {
116+
opacity: 1;
117+
}
118+
119+
div[class*='language-']>button.copy {
120+
border-radius: 4px;
121+
background: var(--vp-c-brand-1);
122+
opacity: 0;
123+
transition: opacity 0.3s, background 0.2s;
124+
}
125+
126+
div[class*='language-']>button.copy:hover {
127+
background: var(--vp-c-brand-2);
43128
}

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ features:
2828
details: ⚠️ 🚧 UNDER CONSTRUCTION 🚧 ⚠️
2929

3030
---
31-
::: warning ⚠️ UNDER CONSTRUCTION ⚠️
32-
**This site is under active development.** Content is evolving quickly; expect placeholders, incomplete sections, and frequent updates.
31+
::: warning ⚠️ DOCUMENTATION UNDER CONSTRUCTION ⚠️
32+
**This documentation is being written from scratch.** What you see here is essentially placeholder content and should not be trusted as accurate. Expect significant changes and updates.
3333
:::
3434

0 commit comments

Comments
 (0)