Skip to content

Commit 2795a96

Browse files
committed
Add dark theme configuration and styles for majestic site
1 parent 912666d commit 2795a96

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

docs/.vitepress/config.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default defineConfig({
66
base: '/',
77
lang: 'en-US',
88

9+
appearance: 'force-dark', // Match Svelte app — dark only, no toggle
10+
911
themeConfig: {
1012
logo: '/logo.svg',
1113
nav: [

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import DefaultTheme from 'vitepress/theme';
22
import { h } from 'vue';
3+
import './majestic.css';
34

45
// Build meta written by prepare.mjs — import path relative to theme
56
// @ts-expect-error JSON import

docs/.vitepress/theme/majestic.css

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/**
2+
* Majestic brand palette — matches Svelte app (majestic-server app.css, tailwind)
3+
* Dark theme only. Spec site, not marketing.
4+
*/
5+
:root,
6+
.dark {
7+
/* Backgrounds — brand-void, charcoal, ash */
8+
--vp-c-bg: #0f0d0b;
9+
--vp-c-bg-alt: #1a1814;
10+
--vp-c-bg-elv: #252219;
11+
--vp-c-bg-soft: #252219;
12+
13+
/* Text — brand-bone, muted, subtle */
14+
--vp-c-text-1: #e8e2d8;
15+
--vp-c-text-2: #b8b0a4;
16+
--vp-c-text-3: #8a8378;
17+
18+
/* Brand accent — espresso gold */
19+
--vp-c-brand-1: #a67b4a;
20+
--vp-c-brand-2: #c9a065;
21+
--vp-c-brand-3: #8e6b3a;
22+
--vp-c-brand-soft: rgba(166, 123, 74, 0.15);
23+
24+
/* Borders — subtle bone tint */
25+
--vp-c-border: rgba(232, 226, 216, 0.12);
26+
--vp-c-divider: rgba(232, 226, 216, 0.08);
27+
--vp-c-gutter: rgba(0, 0, 0, 0.4);
28+
29+
/* Default/gray — warm neutrals */
30+
--vp-c-default-1: #8a8378;
31+
--vp-c-default-2: #6a6358;
32+
--vp-c-default-3: #4a4338;
33+
--vp-c-default-soft: rgba(138, 131, 120, 0.12);
34+
35+
/* Code block */
36+
--vp-code-block-bg: #1a1814;
37+
--vp-code-block-divider-color: rgba(232, 226, 216, 0.08);
38+
--vp-code-color: #c9a065;
39+
--vp-code-link-color: #a67b4a;
40+
--vp-code-link-hover-color: #c9a065;
41+
42+
/* Nav / sidebar */
43+
--vp-nav-bg-color: #0f0d0b;
44+
--vp-nav-screen-bg-color: #0f0d0b;
45+
--vp-sidebar-bg-color: #1a1814;
46+
--vp-local-nav-bg-color: #0f0d0b;
47+
48+
/* Button brand */
49+
--vp-button-brand-bg: #8e6b3a;
50+
--vp-button-brand-hover-bg: #a67b4a;
51+
--vp-button-brand-active-bg: #c9a065;
52+
}
53+
54+
/* Light mode: force same dark palette (spec site is dark) */
55+
:root:not(.dark) {
56+
color-scheme: dark;
57+
}

0 commit comments

Comments
 (0)