Skip to content

Commit 72f2e91

Browse files
committed
chore: update animation, icons, config, and theme styles
1 parent 37df07b commit 72f2e91

10 files changed

Lines changed: 53 additions & 52 deletions

File tree

.vitepress/config.mts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ const siteUrl = 'https://specdriven.com'
66
export default defineConfig({
77
base,
88
srcDir: 'docs',
9+
vite: {
10+
server: {
11+
allowedHosts: ['auto.ngrok.pizza'],
12+
},
13+
},
914
lang: 'en-US',
1015
title: 'Spec-Driven',
1116
description: 'Specifications are the new programming languages. Spec-Driven Development is the paradigm for building software in the age of AI.',

.vitepress/theme/components/AnimatedHero.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,14 @@ onUnmounted(() => {
208208
.hero-name {
209209
font-family: 'Barlow', sans-serif;
210210
font-size: 4.6rem;
211-
font-weight: 800;
212-
line-height: 1.05;
211+
font-weight: 400;
212+
line-height: 1.1;
213213
letter-spacing: -0.03em;
214214
margin-bottom: 20px;
215215
}
216216
217217
.hero-name-clip {
218-
background: var(--vp-home-hero-name-background);
219-
-webkit-background-clip: text;
220-
background-clip: text;
221-
-webkit-text-fill-color: var(--vp-home-hero-name-color);
218+
color: var(--vp-c-text-1);
222219
}
223220
224221
.hero-tagline-main {

.vitepress/theme/custom.css

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -66,31 +66,25 @@
6666
}
6767

6868
/* ---------- Navbar ---------- */
69-
.dark .VPNav {
69+
/* backdrop-filter goes on VPNavBar, NOT VPNav — putting it on VPNav
70+
turns it into a containing block and breaks VPNavScreen (position:fixed) */
71+
.dark .VPNavBar {
7072
backdrop-filter: blur(20px) saturate(180%);
7173
-webkit-backdrop-filter: blur(20px) saturate(180%);
72-
}
73-
74-
.dark .VPNavBar {
7574
border-bottom-color: rgba(255, 255, 255, 0.06) !important;
7675
}
7776

78-
/* Ensure nav (incl. hamburger + mobile menu) sits above hero animation */
79-
.VPNav {
80-
z-index: 100 !important;
81-
}
82-
8377
/* ---------- Ambient Glow Behind Hero ---------- */
8478
.dark .VPHome {
8579
position: relative;
80+
overflow: hidden;
8681
}
8782

8883
.dark .VPHome::before {
8984
content: '';
9085
position: absolute;
9186
top: -120px;
92-
left: 50%;
93-
transform: translateX(-50%);
87+
left: -20%;
9488
width: 140%;
9589
height: 700px;
9690
background:
@@ -115,9 +109,37 @@
115109
}
116110

117111
/* ---------- Feature Card Icons ---------- */
112+
.VPFeatures .VPFeature .icon {
113+
display: flex;
114+
align-items: center;
115+
justify-content: center;
116+
width: 40px;
117+
height: 40px;
118+
border-radius: 10px;
119+
margin-bottom: 4px;
120+
}
121+
122+
.dark .VPFeatures .VPFeature .icon {
123+
background: rgba(255, 255, 255, 0.05);
124+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
125+
}
126+
127+
.dark .VPFeatures .VPFeature .icon img {
128+
filter: brightness(1.8);
129+
opacity: 0.5;
130+
}
131+
132+
:root:not(.dark) .VPFeatures .VPFeature .icon {
133+
background: rgba(0, 0, 0, 0.03);
134+
}
135+
136+
:root:not(.dark) .VPFeatures .VPFeature .icon img {
137+
opacity: 0.45;
138+
}
139+
118140
.VPFeatures .VPFeature .icon img {
119-
width: 48px;
120-
height: 48px;
141+
width: 20px;
142+
height: 20px;
121143
}
122144

123145
/* ---------- Feature Cards ---------- */
@@ -164,25 +186,7 @@
164186
line-height: 1.6;
165187
}
166188

167-
/* Color-code each feature card's top stripe on hover */
168-
.dark .VPFeatures .items .item:nth-child(1) .VPFeature:hover::before {
169-
background: #ec3f4a;
170-
}
171-
.dark .VPFeatures .items .item:nth-child(2) .VPFeature:hover::before {
172-
background: #ff8a1d;
173-
}
174-
.dark .VPFeatures .items .item:nth-child(3) .VPFeature:hover::before {
175-
background: #5ec72d;
176-
}
177-
.dark .VPFeatures .items .item:nth-child(4) .VPFeature:hover::before {
178-
background: #42c3f7;
179-
}
180-
.dark .VPFeatures .items .item:nth-child(5) .VPFeature:hover::before {
181-
background: linear-gradient(90deg, #ec3f4a, #ff8a1d);
182-
}
183-
.dark .VPFeatures .items .item:nth-child(6) .VPFeature:hover::before {
184-
background: linear-gradient(90deg, #5ec72d, #42c3f7);
185-
}
189+
/* Consistent brand gradient stripe on all cards */
186190

187191
/* ---------- Homepage Content Sections (Dark) ---------- */
188192
.dark .VPHome .vp-doc em {
@@ -335,6 +339,7 @@
335339
/* Light mode top stripe */
336340
:root:not(.dark) .VPHome {
337341
position: relative;
342+
overflow: hidden;
338343
}
339344

340345
:root:not(.dark) .VPHome::after {
@@ -382,13 +387,7 @@
382387
opacity: 1;
383388
}
384389

385-
/* Light mode color-coded card stripes */
386-
:root:not(.dark) .VPFeatures .items .item:nth-child(1) .VPFeature:hover::before { background: #ec3f4a; }
387-
:root:not(.dark) .VPFeatures .items .item:nth-child(2) .VPFeature:hover::before { background: #ff8a1d; }
388-
:root:not(.dark) .VPFeatures .items .item:nth-child(3) .VPFeature:hover::before { background: #5ec72d; }
389-
:root:not(.dark) .VPFeatures .items .item:nth-child(4) .VPFeature:hover::before { background: #42c3f7; }
390-
:root:not(.dark) .VPFeatures .items .item:nth-child(5) .VPFeature:hover::before { background: linear-gradient(90deg, #ec3f4a, #ff8a1d); }
391-
:root:not(.dark) .VPFeatures .items .item:nth-child(6) .VPFeature:hover::before { background: linear-gradient(90deg, #5ec72d, #42c3f7); }
390+
/* Consistent brand gradient stripe on all light mode cards */
392391

393392
/* Light content sections */
394393
.VPHome .vp-doc h2 {

docs/public/animations/design-to-specs.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/public/icons/01-why-spec-driven.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/public/icons/02-what-are-specs.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

docs/public/icons/04-tool-landscape.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/public/icons/05-spec-dialects.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/public/icons/06-discovery-techniques.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)