Skip to content

Commit a82c94b

Browse files
committed
fix: dark mode logos
1 parent db576e4 commit a82c94b

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

.vitepress/theme/LogoWall.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ defineProps<{ entries: Entry[] }>()
7676
max-width: 80%;
7777
object-fit: contain;
7878
}
79+
80+
/* Dark-mode rescue for monochrome-dark adopter logos lives in
81+
.vitepress/theme/custom.css (unscoped). Vue's scoped CSS collapses
82+
`:global(.dark) .selector` to just `.dark` for non-inheriting
83+
properties, so this kind of theme override has to be unscoped. */
7984
.zarr-wall__name-frame {
8085
font-weight: 700;
8186
font-size: 18px;

.vitepress/theme/custom.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,34 @@
1919
display: none;
2020
}
2121

22+
/* Dark-mode overrides for components — kept here (unscoped) because
23+
Vue's scoped CSS mishandles `:global(.dark) .selector` rules for
24+
non-inheriting properties. Class selectors match regardless of the
25+
data-v hash on each component's elements. */
26+
27+
.dark .zarr-hero {
28+
--zarr-coral-1: #f5d2dc;
29+
--zarr-coral-2: #e89bb8;
30+
--zarr-coral-3: #c25e92;
31+
--zarr-stroke: #faf7f2;
32+
--zarr-grid: rgba(255, 255, 255, 0.12);
33+
--zarr-glow: rgba(232, 155, 184, 0.7);
34+
}
35+
36+
/* Many adopter logos (CarbonPlan, ESA, LEAP, etc.) are dark-monochrome
37+
and vanish on a dark background. Pill them onto a near-white canvas
38+
in dark mode so every card reads, light or dark. Right long-term fix
39+
is curated dark-variant logos per adopter — this keeps the page
40+
legible in the meantime. */
41+
.dark .zarr-wall__logo-frame {
42+
background: #f7f7f8;
43+
border-radius: 6px;
44+
padding: 6px 10px;
45+
}
46+
.dark .zarr-wall__logo-frame img {
47+
max-height: 60px;
48+
}
49+
2250
/* Give the cube room to breathe on desktop. Default VitePress sizing
2351
makes the SVG too small relative to the hero text column. */
2452
@media (min-width: 960px) {

adopters/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const stats = computed(() => {
3737
<PageHero
3838
eyebrow="Adopters"
3939
headline="Used in production by leaders across science and industry."
40-
lead="From peta-scale Earth observation to connectomics imaging, Zarr is how teams move large arrays through cloud storage and analysis pipelines."
40+
lead="Peta-scale, from Earth observation to bio-imaging. Zarr is how teams move large arrays through cloud storage and analysis pipelines."
4141
>
4242
<template #meta>
4343
<div class="adopters-stats">

0 commit comments

Comments
 (0)