Can you apply some of the button styles from this side here? https://www.dialkit.dev/
Can you apply some of the button styles from this side here?
Looking at dialkit.dev's shipped CSS. Two button idioms there worth borrowing:
- Flat
.dialkit-button/ select trigger / segmented control: translucent ink surface (black 4% light, white 5–8% dark), no border, 8px radius, 13px/500 sans, muted text that darkens to full ink on hover, a one-step darker surface on:active, 150ms transitions. Segmented controls use a sliding "pill" (surface-active) behind transparent buttons. - Hero glass pills: 999px radius, gradient fill (
radial-gradienttop-left highlight +linear-gradient145deg white 13%→5%), 1px white 20% border,inset 0 1pxtop highlight,inset 0 -1pxunderline, soft0 8px 18pxdrop shadow.
Plan: screenshot the site to confirm which look reads as "the button style", then port it onto app/globals.css's existing selectors (generic button, the secondary button.jump-top/.stop-run/.merge-pr/.compose-cancel group, .seg, .run-chip/.attach-btn chips, .page-head > a) via tokens, keeping dark mode + lib/terminal-themes.ts paletteVars in sync. Mockup before/after screenshots to follow.
threadide@30bc6baDone: buttons now carry DialKit's glass finish, pushed on thread/e53880c0 (30bc6ba).
What I took from dialkit.dev: the hero's lit glass keys ("Weight", "Strength", the Off/On pill). Their CSS is inset 0 1px #ffffff4d (top shine) + inset 0 -1px (bottom shade) + a radial/linear highlight gradient + 1px translucent border + 0 8px 18px drop shadow. The flat .dialkit-button in their panels is just a translucent grey fill, which the app already had, so there was nothing to borrow there.
How it is applied (app/globals.css):
- One rule after the generic
buttonbuilds a five-layerbox-shadow(shine, gloss band, shade, edge ring, lift) onbutton, the home "New thread" CTA, the active.segsegment, the Ask Claude / Image chips, selects and the PR pills. Shadow-only on purpose: the many laterbackground:shorthands would wipe a gradient but never touchbox-shadow, so nothing else needed restyling. - Grey controls use
--*-filllayers, the solid primary (and armed Stop / Merge) use--*-accent. Hover raises--lift,:activecollapses it, select focus swaps--edgefor the ink hairline (replacing the old explicit focus shadow). - The chosen segment of Light | Dark style switches is now DialKit's lifted "pill" on a flat track instead of a darker grey.
- Tokens live in
:root, both dark blocks andlib/terminal-themes.ts paletteVars, so the /themes palettes get it too. - Ghost/text buttons (menus, nav toggle, avatar, links, the × on image chips) opt out; the two inline-styled transparent buttons (fork, remove repo) got
className="ghost".
Not taken: DialKit's 999px pill radius (you kept the 4/6/10px scale and rejected pills before) and their 13px sans labels (the mono uppercase label system stays). If you do want the full pill look, it is one change: --radius: 999px on the button list.
Verified with static mockups of the real stylesheet (light + dark, 2× close-ups with a hovered secondary); tsc passes. Not checked in the running app: the compose panel's chips sitting on --bg inside the fill panel. Shout if anything there looks doubled.
Merged threadide #130 by @osebo (merge, b33cc70).
