Skip to content

Commit ce666b5

Browse files
committed
fix(css): πŸ› fix light mode glass borders and contrast
Light mode glass borders were white (rgba(255,255,255,.56)) β€” invisible against the light (#EBF0F4) background. Glass backgrounds used color-mix(in srgb, white XX%, transparent) which blended in. Changes: - Switch all light mode glass borders to subtle dark tones (rgba(15,23,42,.10-.12)) - Replace color-mix() glass backgrounds with explicit rgba(255,255,255,.62-.78) - Add light-mode-specific box-shadow overrides for .gs and .go layers - Strengthen card shadows with proper layered depth - Add light mode .gi:hover border highlight using accent glow color
1 parent ee24eea commit ce666b5

1 file changed

Lines changed: 25 additions & 13 deletions

File tree

β€Žsrc/styles/vitro-base.cssβ€Ž

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,24 @@
5353
--t2: #1C2340;
5454
--t3: #424E6E;
5555
--t4: #6E7A96;
56-
--div: rgba(17, 24, 39, .07);
56+
--div: rgba(15, 23, 42, .10);
5757

58-
--gs-bg: color-mix(in srgb, white 54%, transparent);
59-
--gs-bd: rgba(255, 255, 255, .56);
58+
--gs-bg: rgba(255, 255, 255, .62);
59+
--gs-bd: rgba(15, 23, 42, .10);
6060

61-
--gc-bg: color-mix(in srgb, white 60%, transparent);
62-
--gc-bd: rgba(255, 255, 255, .62);
63-
--gc-sh: 0 10px 28px rgba(17, 24, 39, .07), inset 0 1px 0 rgba(255, 255, 255, .7);
64-
--gc-hsh: 0 20px 42px rgba(17, 24, 39, .12), inset 0 1px 0 rgba(255, 255, 255, .82);
61+
--gc-bg: rgba(255, 255, 255, .68);
62+
--gc-bd: rgba(15, 23, 42, .11);
63+
--gc-sh: 0 4px 16px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .06);
64+
--gc-hsh: 0 12px 32px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .08);
6565

66-
--gi-bg: color-mix(in srgb, white 62%, transparent);
67-
--gi-bd: rgba(255, 255, 255, .52);
68-
--gi-hbg: color-mix(in srgb, white 78%, transparent);
66+
--gi-bg: rgba(255, 255, 255, .65);
67+
--gi-bd: rgba(15, 23, 42, .12);
68+
--gi-hbg: rgba(255, 255, 255, .82);
6969

70-
--go-bg: color-mix(in srgb, white 72%, transparent);
71-
--go-bd: rgba(255, 255, 255, .66);
70+
--go-bg: rgba(255, 255, 255, .78);
71+
--go-bd: rgba(15, 23, 42, .10);
7272

73-
--spec: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .06) 34%, transparent);
73+
--spec: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .08) 34%, transparent);
7474

7575
--mesh-op: .22;
7676
--mesh-op2: .16;
@@ -231,6 +231,18 @@
231231
animation: vitro-fade-in .16s var(--ease) both;
232232
}
233233

234+
[data-mode=light] .gs {
235+
box-shadow: 0 2px 12px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
236+
}
237+
238+
[data-mode=light] .go {
239+
box-shadow: 0 16px 40px rgba(15, 23, 42, .10), 0 4px 12px rgba(15, 23, 42, .06);
240+
}
241+
242+
[data-mode=light] .gi:hover {
243+
border-color: rgba(var(--gl), .35);
244+
}
245+
234246
[data-mode=dark] .go {
235247
box-shadow: 0 26px 62px rgba(0, 0, 0, .44);
236248
}

0 commit comments

Comments
Β (0)