aboutsummaryrefslogtreecommitdiff
path: root/doc/docs/.vitepress/theme/custom.css
blob: 3cf51d72380344e376e893f9b9a9ebbc8a3d071e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
@import '@fontsource/merriweather/400.css';
@import '@fontsource/merriweather/700.css';
@import '@fontsource/merriweather/900.css';
@import '@fontsource/merriweather/400-italic.css';
@import '@fontsource/merriweather/700-italic.css';
@import '@fontsource/merriweather/900-italic.css';

@import '@fontsource/noto-serif-sc/400.css';
@import '@fontsource/noto-serif-sc/700.css';
@import '@fontsource/noto-serif-sc/900.css';

:root {
  /* --- TYPOGRAPHY --- */
  /* Keep standard sans-serif for body text for readability */
  --vp-font-family-base: system-ui, sans-serif;
  --vp-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* --- BRAND COLORS (Original Moon Gold) --- */
  --vp-c-brand-1: #b4ac8f;
  --vp-button-brand-bg: #b4ac8f;
  --vp-button-brand-hover-bg: #b4ac8f;
  --vp-button-brand-active-bg: #b4ac8f;
  --vp-button-brand-border: #b4ac8f;
  --vp-button-brand-hover-border: #b4ac8f;
  --vp-button-brand-active-border: #b4ac8f;
  --vp-button-brand-text: #fff;

  /* --- LIGHT MODE THEME --- */
  /* A warmer, "creamy" paper feel instead of harsh white */
  --vp-c-bg: #FDFBF7;
  --vp-c-bg-soft: #F7F5F0;
  /* Slightly darker for sidebars */
  --vp-c-bg-alt: #F0EDE5;
  /* For code blocks/inputs */

  /* Text Colors: Deep Navy instead of pure black for softer contrast */
  --vp-c-text-1: #1a202c;
  --vp-c-text-2: #4a5568;
}

/* Hero image - enlarge container to fit 450px image without overflow */
@media (min-width: 960px) {
  .VPHero .image-container {
    width: 450px !important;
  }
}
.VPHero :deep(.image-src) {
  max-width: 450px;
  max-height: 450px;
}

/* --- DARK MODE THEME (Midnight Blue) --- */
.dark {
  /* Deep Midnight Blue background (replaces standard grey) */
  --vp-c-bg: #0B0E14;
  --vp-c-bg-soft: #131722;
  /* Sidebar/Nav */
  --vp-c-bg-alt: #1A1F2E;
  /* Code blocks/inputs */

  /* Text Colors: Moonlight Silver */
  --vp-c-text-1: #E2E8F0;
  --vp-c-text-2: #94A3B8;

  /* Adjust border colors to blend with blue, not grey */
  --vp-c-border: #1E293B;
  --vp-c-divider: #1E293B;
  --vp-c-gutter: #1E293B;
}

/* --- HEADINGS: Apply the Serif Font --- */
h1,
h2,
h3,
h4,
h5,
h6,
.VPFeature .title,
.VPHero .name,
.VPNavBarTitle .title {
  font-family: 'Merriweather', 'Noto Serif SC', serif !important;
  letter-spacing: -0.02em;
  /* Tighter tracking looks more professional on serifs */
}

/* Make the Hero Title (YueScript) feel more "Editorial" */
.VPHero .name {
  font-weight: 900 !important;
  color: var(--vp-c-brand-1);
  /* Optional: Adds a subtle glow in dark mode */
  text-shadow: 0 0 20px rgba(180, 172, 143, 0.2);
}

/* --- BUTTONS --- */
/* Ensure the "Brand" buttons use our Gold color with white text for contrast */
.VPButton.brand {
  color: #fff !important;
  background-color: var(--vp-c-brand-1) !important;
  border-color: var(--vp-c-brand-1) !important;
}

.VPButton.brand:hover {
  background-color: var(--vp-c-brand-1) !important;
}


/* Prism theme for YueCompiler output (shikijs/themes light-plus & dark-plus) */
.code-output,
.code-output code {
  background: #ffffff;
  color: #000000;
  font-size: 14px;
}

.dark .code-output,
.dark .code-output code {
  background: #1e1e1e;
  color: #d4d4d4;
}

/* light-plus */
.code-output .token.comment {
  color: #008000;
}

.code-output .token.keyword {
  color: #AF00DB;
}

.code-output .token.operator,
.code-output .token.punctuation {
  color: #000000;
}

.code-output .token.string,
.code-output .token.char {
  color: #a31515;
}

.code-output .token.regex {
  color: #811f3f;
}

.code-output .token.variable,
.code-output .token.parameter {
  color: #001080;
}

.code-output .token.number,
.code-output .token.boolean,
.code-output .token.constant {
  color: #098658;
}

.code-output .token.function {
  color: #795e26;
}

.code-output .token.class-name,
.code-output .token.builtin {
  color: #267f99;
}

.code-output .token.invalid {
  color: #cd3131;
}

/* dark-plus */
.dark .code-output .token.comment {
  color: #6a9955;
}

.dark .code-output .token.keyword {
  color: #C586C0;
}

.dark .code-output .token.operator,
.dark .code-output .token.punctuation {
  color: #d4d4d4;
}

.dark .code-output .token.string,
.dark .code-output .token.char {
  color: #ce9178;
}

.dark .code-output .token.regex {
  color: #d16969;
}

.dark .code-output .token.variable,
.dark .code-output .token.parameter {
  color: #9cdcfe;
}

.dark .code-output .token.number,
.dark .code-output .token.boolean,
.dark .code-output .token.constant {
  color: #b5cea8;
}

.dark .code-output .token.function {
  color: #dcdcaa;
}

.dark .code-output .token.class-name,
.dark .code-output .token.builtin {
  color: #4ec9b0;
}

.dark .code-output .token.invalid {
  color: #f44747;
}

/* --- CODE BLOCKS --- */
/* Slight adjustment to code block background to fit the midnight theme */
.dark .vp-code-group .tabs label {
  background-color: #1A1F2E;
}