No outlines

ready…
osebo50d ago

Can we adapt our current design to not use outlines and use fill colors of off greys instead for buttons and input fields

2 repliesoldestnewest
Osebotfable-5-150d ago

Plan — restyle controls in app/globals.css from outlined to filled:

  • New tokens --fill / --fill-hover / --fill-focus: warm off-greys in light (visible on both the parchment page bg and white cards), neutral dark greys in dark mode.
  • Inputs (compose textarea + text inputs, thread search, workspace <select>, generic select, repo-picker input, invite-link code box): border: 0, off-grey fill; focus = one step darker fill (no ring / box-shadow). Loading cue on the search box becomes a thin inset bottom bar instead of a border recolour.
  • Buttons / button-like links: primary <button> stays solid black/white (already no outline). The outlined ones become grey fills: "New thread" CTA (.page-head > a), Everyone|Yours segmented control (.seg, becomes a grey track with a solid "on" segment), + Image dashed .attach-btn, PR link chips (.pr-links a).
  • Leaving status badges / repo chips / cards alone — they're not buttons or fields. Happy to extend to those if you want the whole UI outline-free.

Will verify with a static mockup screenshot (light + dark) since the app can't run in the sandbox.

Osebotfable-5-150d agothreadide@d34285e

Done — buttons and input fields are now filled with off-greys instead of outlined. One file changed: threadide/app/globals.css, pushed to thread/c250f027 (no PR opened; say the word if you want one).

What changed

  • New tokens in :root: --fill (rest), --fill-hover, --fill-focus. Light = warm greys #ebe8e2 / #e2dfd8 / #d9d6ce so they read against both the parchment page and white cards; dark = #1f1f1f / #2a2a2a / #363636 on the black surface.
  • Fields → border: 0; background: var(--fill), focus = darker fill (the old black focus ring / box-shadow is gone): compose textarea + text inputs, thread search box, workspace <select>, generic <select> (model/kind pickers), repo-picker input, invite-link <code> box. Padding is +1px to keep the same box size as the bordered versions.
  • Button-like things that were outlined → grey fill: "New thread" CTA (hover still inverts to solid), Everyone|Yours .seg (now a grey track with 2px inset, solid "on" segment, muted text for the off one), + Image attach label (was dashed), PR link chips in agent posts.
  • Primary <button> untouched — it was already a solid fill. Status badges / repo chips / card borders untouched too; they aren't controls.
  • The search "loading" cue moved from an amber border to a 2px inset amber bar along the bottom edge (.thread-browser.is-loading).

Trade-off to be aware of: focus on text fields is now indicated only by the fill stepping one shade darker — deliberate per "no outlines", but it's a lower-contrast focus indicator than before. The segmented control keeps its keyboard-only :focus-visible outline since there's no fill to shift there. If you'd like a subtle focus cue that isn't an outline (e.g. a bottom bar like the loading cue), that's a one-line change.

Screenshots attached are static mockups linking the real CSS (app can't run in the sandbox): before/after in light and dark.

Follow-up if you want the whole UI outline-free: .badge pills (status), .repo-chip, .post .body img borders and details.diff would be next; I left them since the ask was buttons + fields.

Light mode — before (outlined) vs after (off-grey fills): search, New thread, Everyone|Yours, selects, PR chips, invite link, composer
Light mode — before (outlined) vs after (off-grey fills): search, New thread, Everyone|Yours, selects, PR chips, invite link, composer
Dark mode — same before/after comparison
Dark mode — same before/after comparison
Diff · 1 files
--- a/threadide/app/globals.css
+++ b/threadide/app/globals.css
@@ :root (light) @@
+  --fill: #ebe8e2;
+  --fill-hover: #e2dfd8;
+  --fill-focus: #d9d6ce;
@@ :root (dark) @@
+    --fill: #1f1f1f;
+    --fill-hover: #2a2a2a;
+    --fill-focus: #363636;
@@ New thread CTA @@
-.page-head > a { … border: 1px solid var(--text); border-radius: 3px; padding: 6px 12px; }
+.page-head > a { … background: var(--fill); border-radius: 3px; padding: 7px 13px; }
@@ Search box @@
-.thread-search input { … padding: 6px 10px; border: 1px solid var(--border-strong); background: var(--surface); … }
+.thread-search input { … padding: 7px 11px; border: 0; background: var(--fill); … }
+.thread-search input:hover { background: var(--fill-hover); }
-.thread-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
+.thread-search input:focus { outline: none; background: var(--fill-focus); }
-.thread-browser.is-loading .thread-search input { border-color: var(--karma); }
+.thread-browser.is-loading .thread-search input { box-shadow: inset 0 -2px 0 var(--karma); }
@@ Everyone | Yours @@
-.seg { display: inline-flex; border: 1px solid var(--text); border-radius: 3px; overflow: hidden; flex: 0 0 auto; }
+.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--fill); border-radius: 3px; flex: 0 0 auto; }
 .seg label {
-  … padding: 6px 12px; cursor: pointer; … color: var(--text);
+  … padding: 5px 11px; cursor: pointer; border-radius: 2px; … color: var(--muted);
 }
-.seg label + label { border-left: 1px solid var(--text); }
-.seg label:hover { background: var(--pre-bg); }
-.seg label.is-on { background: var(--accent); color: var(--on-accent); }
+.seg label:hover { background: var(--fill-hover); color: var(--text); }
+.seg label.is-on, .seg label.is-on:hover { background: var(--accent); color: var(--on-accent); }
@@ Workspace select @@
-  … padding: 6px 26px 6px 10px; border: 1px solid var(--border-strong); background: var(--surface); …
+  … padding: 7px 27px 7px 11px; border: 0; background: var(--fill); …
-.thread-filter.has-value select { color: var(--text); border-color: var(--text); }
-.thread-filter select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
+.thread-filter.has-value select { color: var(--text); }
+.thread-filter select:hover { background: var(--fill-hover); }
+.thread-filter select:focus { outline: none; background: var(--fill-focus); }
@@ Compose forms @@
-form.compose textarea { … padding: 10px; border: 1px solid var(--border-strong); background: var(--surface); … }
-form.compose input:where(…) { … padding: 8px 10px; border: 1px solid var(--border-strong); background: var(--surface); … }
-form.compose :is(textarea, input):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
+form.compose textarea { … padding: 11px; border: 0; background: var(--fill); … }
+form.compose input:where(…) { … padding: 9px 11px; border: 0; background: var(--fill); … }
+form.compose :is(textarea, input:not([type="checkbox"])):hover { background: var(--fill-hover); }
+form.compose :is(textarea, input:not([type="checkbox"])):focus { outline: none; background: var(--fill-focus); }
@@ Generic select @@
-select { font: inherit; padding: 5px 8px; border-radius: 2px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
+select { font: inherit; padding: 6px 9px; border-radius: 2px; border: 0; background: var(--fill); color: var(--text); }
+select:hover { background: var(--fill-hover); }
+select:focus { outline: none; background: var(--fill-focus); }
@@ Invite link / PR chips / attach / repo picker @@
-.invite-box code { … padding: 6px 8px; border: 1px solid var(--border); border-radius: 2px; }
+.invite-box code { … padding: 7px 9px; background: var(--fill); border-radius: 2px; }
-.pr-links a { border: 1px solid var(--border-strong); border-radius: 2px; padding: 2px 8px; text-decoration: none; }
+.pr-links a { background: var(--fill); border-radius: 2px; padding: 3px 9px; text-decoration: none; }
+.pr-links a:hover { background: var(--fill-hover); }
-.attach-btn { … border: 1px dashed var(--border-strong); border-radius: 2px; padding: 3px 10px; … }
-.attach-btn:hover { color: var(--text); border-color: var(--muted); }
+.attach-btn { … background: var(--fill); border-radius: 2px; padding: 4px 11px; … }
+.attach-btn:hover { color: var(--text); background: var(--fill-hover); }
-.repo-picker input { … padding: 8px 10px; border: 1px solid var(--border-strong); background: var(--surface); … }
+.repo-picker input { … padding: 9px 11px; border: 0; background: var(--fill); … }
+.repo-picker input:hover { background: var(--fill-hover); }
+.repo-picker input:focus { outline: none; background: var(--fill-focus); }