Tengo Gzirishvili Claude Opus 4.8 commited on
Commit
3f65210
·
1 Parent(s): 046914a

Filled CTAs: light bar at rest in both themes, invert to black on hover

Browse files

Per the user's choice, the filled primary buttons (.primary / .primary-lg —
"Import & map", "Generate library", "Design guides", etc.) are now a LIGHT bar
(warm-white fill, ink label, hairline edge) at rest in BOTH light and dark
themes, inverting to a near-black rectangle with white text on hover — the same
white→black behaviour as the outline/ghost buttons.

Before, in light mode these were solid black bars, so hovering them showed no
change (only dark mode flipped cream→black). Now both themes behave identically.
Icon chip tints dark on the light bar and light once it inverts. Bump cache-buster.

Verified in preview: resting bg #FBFAF6 + ink label in light AND dark; hover
resolves to #0A0A0A bg + #FBFAF6 text in both.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Files changed (2) hide show
  1. dee/static/app.css +16 -8
  2. dee/static/index.html +3 -3
dee/static/app.css CHANGED
@@ -3875,12 +3875,15 @@ h3, h4 {
3875
  dark (both via the neutral tokens, so it adapts per theme). Cream/ink text
3876
  stays readable in either mode. Zero hue — the editorial register comes from
3877
  the ink + serif type, not a colour accent. */
 
 
 
3878
  .primary {
3879
- background: var(--ink-strong);
3880
- border-color: var(--ink-strong);
3881
- color: var(--gray-0);
3882
  border-radius: var(--r-2);
3883
- box-shadow: 0 1px 2px rgba(20, 19, 16, 0.20);
3884
  font-family: var(--font-body);
3885
  font-weight: 600;
3886
  letter-spacing: 0;
@@ -3893,9 +3896,10 @@ h3, h4 {
3893
  box-shadow: 0 4px 12px rgba(20, 19, 16, 0.24);
3894
  }
3895
  .primary-lg {
3896
- background: linear-gradient(180deg, var(--ink) 0%, var(--ink-strong) 100%);
3897
- border-color: var(--ink-strong);
3898
- box-shadow: 0 1px 2px rgba(20, 19, 16, 0.20);
 
3899
  }
3900
  .primary-lg:not(:disabled):hover {
3901
  background: var(--hover-fill);
@@ -3903,7 +3907,11 @@ h3, h4 {
3903
  color: var(--hover-text);
3904
  box-shadow: 0 6px 18px rgba(20, 19, 16, 0.24);
3905
  }
3906
- .primary-icon { background: rgba(255,255,255,0.16); }
 
 
 
 
3907
 
3908
  /* ── Ghost / secondary — keep the thin border but tighten typography and
3909
  make it feel like a text-link with a frame. */
 
3875
  dark (both via the neutral tokens, so it adapts per theme). Cream/ink text
3876
  stays readable in either mode. Zero hue — the editorial register comes from
3877
  the ink + serif type, not a colour accent. */
3878
+ /* Filled CTAs are a LIGHT bar at rest in BOTH themes (warm-white fill, ink
3879
+ label, hairline edge) that inverts to a near-black rectangle with white text
3880
+ on hover — same behaviour light + dark, matching the outline buttons. */
3881
  .primary {
3882
+ background: var(--hover-text);
3883
+ border-color: rgba(10, 10, 10, 0.20);
3884
+ color: var(--hover-fill);
3885
  border-radius: var(--r-2);
3886
+ box-shadow: 0 1px 2px rgba(20, 19, 16, 0.14);
3887
  font-family: var(--font-body);
3888
  font-weight: 600;
3889
  letter-spacing: 0;
 
3896
  box-shadow: 0 4px 12px rgba(20, 19, 16, 0.24);
3897
  }
3898
  .primary-lg {
3899
+ background: var(--hover-text);
3900
+ border-color: rgba(10, 10, 10, 0.20);
3901
+ color: var(--hover-fill);
3902
+ box-shadow: 0 1px 2px rgba(20, 19, 16, 0.14);
3903
  }
3904
  .primary-lg:not(:disabled):hover {
3905
  background: var(--hover-fill);
 
3907
  color: var(--hover-text);
3908
  box-shadow: 0 6px 18px rgba(20, 19, 16, 0.24);
3909
  }
3910
+ /* Icon chip: dark-tint on the light resting bar, light-tint once the bar
3911
+ inverts to black on hover. */
3912
+ .primary-icon { background: rgba(10,10,10,0.10); }
3913
+ .primary:not(:disabled):hover .primary-icon,
3914
+ .primary-lg:not(:disabled):hover .primary-icon { background: rgba(255,255,255,0.20); }
3915
 
3916
  /* ── Ghost / secondary — keep the thin border but tighten typography and
3917
  make it feel like a text-link with a frame. */
dee/static/index.html CHANGED
@@ -28,7 +28,7 @@
28
  <!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
29
  app.js change. Bump these numbers whenever you ship a frontend update —
30
  without them, users keep getting the stale file for up to a week. -->
31
- <link rel="stylesheet" href="/static/app.css?v=20260609-hov2" />
32
  <link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
33
  <link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
34
  <!-- Mol* (PDBe) 3-D viewer is ~4.9 MB. We do NOT eager-load it on every
@@ -1859,10 +1859,10 @@
1859
  Authorization header on every same-origin /api/* call. Without
1860
  this, signed-in users would still hit the anonymous-quota
1861
  gate. -->
1862
- <script src="/static/auth.js?v=20260609-hov2"></script>
1863
  <!-- Cloning reference data must load before app.js so the Designer
1864
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
1865
  <script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
1866
- <script src="/static/app.js?v=20260609-hov2" defer></script>
1867
  </body>
1868
  </html>
 
28
  <!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
29
  app.js change. Bump these numbers whenever you ship a frontend update —
30
  without them, users keep getting the stale file for up to a week. -->
31
+ <link rel="stylesheet" href="/static/app.css?v=20260609-hov3" />
32
  <link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
33
  <link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
34
  <!-- Mol* (PDBe) 3-D viewer is ~4.9 MB. We do NOT eager-load it on every
 
1859
  Authorization header on every same-origin /api/* call. Without
1860
  this, signed-in users would still hit the anonymous-quota
1861
  gate. -->
1862
+ <script src="/static/auth.js?v=20260609-hov3"></script>
1863
  <!-- Cloning reference data must load before app.js so the Designer
1864
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
1865
  <script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
1866
+ <script src="/static/app.js?v=20260609-hov3" defer></script>
1867
  </body>
1868
  </html>