Skip to content

Commit 73baeb5

Browse files
committed
style(download): update download nav active state to match figma
Replace the glacier-mist active pill with a white background and canyon-clay text. Align inactive links to text-sm at 60% opacity, tune download code block theme tokens, and hide the footer CTA on download pages.
1 parent 6e6ff57 commit 73baeb5

3 files changed

Lines changed: 17 additions & 23 deletions

File tree

src/pages/download/[slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,6 @@ const jsonLd = appSchema
350350
</Download>
351351
</div>
352352
</div>
353-
<Footer class="z-10" />
353+
<Footer class="z-10" showCTA={false} />
354354
</section>
355355
</Layout>

src/v1/styles/color-theme.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444

4545
/* Target .expressive-code directly to match EC's own selector specificity */
4646
.expressive-code {
47-
--ec-frm-inlBtnFg: var(--color-pine-forge);
48-
--ec-code-background: var(--glacier-mist-700);
49-
--ec-codeBg: var(--glacier-mist-700);
50-
--ec-frm-edBg: var(--glacier-mist-700);
47+
--ec-frm-inlBtnFg: var(--color-canyon-clay---links);
48+
--ec-code-background: var(--glacier-mist-800);
49+
--ec-codeBg: var(--glacier-mist-800);
50+
--ec-frm-edBg: var(--glacier-mist-800);
5151
--ec-code-header-background: color-mix(in srgb, var(--color-glacier-mist-800) 40%, transparent);
5252
}
5353

src/v1/styles/components-download.css

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,18 @@
3737
}
3838

3939
.download-nav-link {
40-
@apply flex items-center gap-2;
41-
@apply p-2;
42-
@apply datum-text-base;
43-
@apply text-midnight-fjord/80;
40+
@apply flex items-center gap-2 rounded-md p-2;
41+
@apply datum-text-sm text-midnight-fjord/60 font-medium;
4442
@apply transition-colors duration-200;
45-
@apply hover:text-midnight-fjord;
43+
@apply hover:text-midnight-fjord/80;
4644
}
4745

4846
.download-nav-link--active {
49-
/* Figma: Item → Link — glacier pill, midnight text, 8px pad, 6px radius */
50-
@apply bg-glacier-mist-900 rounded-md p-2;
51-
@apply text-midnight-fjord font-semibold;
52-
@apply hover:bg-glacier-mist-900 hover:text-midnight-fjord;
47+
@apply text-canyon-clay---links bg-white font-semibold;
48+
@apply hover:text-canyon-clay---links hover:bg-white;
5349

5450
.download-nav-icon {
55-
@apply text-midnight-fjord;
51+
@apply text-canyon-clay---links;
5652
}
5753
}
5854

@@ -187,7 +183,7 @@
187183
}
188184

189185
.download-nav-mobile-selected {
190-
@apply truncate font-medium text-gray-900;
186+
@apply text-canyon-clay---links truncate font-semibold;
191187
}
192188

193189
.download-nav-mobile-chevron {
@@ -221,16 +217,14 @@
221217
}
222218

223219
.download-nav-mobile-link {
224-
@apply flex items-center gap-2;
225-
@apply px-3 py-1;
226-
@apply datum-text-base;
227-
@apply text-midnight-fjord;
220+
@apply flex items-center gap-2 rounded-md px-3 py-1;
221+
@apply datum-text-sm text-midnight-fjord/60 font-medium;
228222
@apply transition-colors duration-300 ease-out;
229-
@apply hover:text-canyon-clay---links;
223+
@apply hover:text-midnight-fjord/80;
230224

231225
&--active {
232-
@apply text-canyon-clay---links font-semibold;
233-
@apply hover:text-midnight-fjord;
226+
@apply text-canyon-clay---links bg-white font-semibold;
227+
@apply hover:text-canyon-clay---links hover:bg-white;
234228

235229
.download-nav-mobile-icon {
236230
@apply text-canyon-clay---links;

0 commit comments

Comments
 (0)