Skip to content

Commit d1b8756

Browse files
authored
Merge pull request #11 from btravstack/fix/light-surface-contrast
Light mode: add surface definition (stronger borders + card lift)
2 parents 148d859 + 0c1e9ad commit d1b8756

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

apps/website/.vitepress/theme/Landing.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,14 @@ onMounted(() => {
250250
--btv-footer: rgba(26, 12, 20, 0.025);
251251
}
252252
:global(html:not(.dark)) .btv-glow { opacity: 0.55; }
253+
/* On near-white, the hairline alone leaves cards looking flat — give them a
254+
soft rest shadow in light mode so they lift off the background. */
255+
:global(html:not(.dark)) .btv-pcard,
256+
:global(html:not(.dark)) .btv-prin-card {
257+
box-shadow: 0 1px 2px rgba(26, 12, 20, 0.05), 0 16px 32px -24px rgba(26, 12, 20, 0.22);
258+
}
259+
/* keep the hover lift shadow — the rest rule above outspecifies .pcard:hover */
260+
:global(html:not(.dark)) .btv-pcard:hover { box-shadow: var(--shadow-card); }
253261
254262
/* general accent highlights (incl. the small copy toast) keep the AA text accent */
255263
.btv-pink { color: var(--text-accent); }

packages/theme/src/tokens.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@
141141
--bg: #FBF7F9;
142142
--bg-grad: #FCEDF4;
143143
--card: #FFFFFF;
144-
--card-soft: #F6EDF2;
144+
--card-soft: #F0E6EC;
145145

146-
--border: rgba(26, 12, 20, 0.10);
147-
--border-2: rgba(26, 12, 20, 0.17);
146+
--border: rgba(26, 12, 20, 0.16);
147+
--border-2: rgba(26, 12, 20, 0.24);
148148

149149
--text: #1F0E18;
150150
--muted: #5E5159; /* ~7.1:1 on white */

0 commit comments

Comments
 (0)