feat(web): tighten the calm design after its anti-slop audit
Fixes items 3-11 of anti-slop/audit-002, all scoped to data-design=calm: - no colored edges on Model Pilot rows, a connected extension or the active file workspace; - section labels and eyebrows in the text face, mono for data only; - one accent: honey text, washes and hover lines turn neutral, honey stays on primary buttons, the switch, focus and attention counts; - dots with no state behind them are hidden and live dots no longer pulse; - no card shadow or hover lift, including the --shadow token; - inline-style gradients go solid or flat, glows go; - no entrance motion: framer-motion animations finish instantly and the inline card-enter and scroll reveals are off; - stock Tailwind hues map onto Hive status tokens, mixed toward --text so small status text keeps 4.5:1 in light; - radii follow the 6 / 10 / 14 scale, text pills become chips. The classic design is unchanged.
This commit is contained in:
@@ -348,14 +348,14 @@ const ModelPilotCard = ({
|
||||
the LaneDropdown below overhangs the row). */}
|
||||
<span
|
||||
aria-hidden
|
||||
className="absolute left-0 top-1.5 bottom-1.5 w-[3px] rounded-full"
|
||||
className="lane-rail absolute left-0 top-1.5 bottom-1.5 w-[3px] rounded-full"
|
||||
style={{ background: lane.rail }}
|
||||
/>
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<lane.icon className="w-3.5 h-3.5 shrink-0 text-muted-foreground" />
|
||||
<div className="min-w-0">
|
||||
<p className="text-[11px] font-display font-semibold" style={{ color: lane.rail }}>
|
||||
<p className="lane-label text-[11px] font-display font-semibold" style={{ color: lane.rail }}>
|
||||
{lane.label}
|
||||
</p>
|
||||
<p className="text-[11px] text-muted-foreground truncate">{lane.description}</p>
|
||||
|
||||
@@ -211,9 +211,10 @@ const Sidebar = ({
|
||||
onClick={() => setDesign(calm ? "classic" : "calm")}
|
||||
className="flex items-center justify-center gap-3 rounded-[10px] px-2.5 py-2 text-left text-[var(--text-2)] transition-colors hover:bg-[var(--surface-2)] hover:text-[var(--text)] lg:justify-start"
|
||||
>
|
||||
{/* Honey when on, so the icon-only rail shows the state too. */}
|
||||
{/* Honey when on, so the icon-only rail shows the state too. --attention,
|
||||
not --honey-text: calm turns honey text neutral. */}
|
||||
<Palette
|
||||
className={`h-[18px] w-[18px] shrink-0 ${calm ? "text-[var(--honey-text)]" : ""}`}
|
||||
className={`h-[18px] w-[18px] shrink-0 ${calm ? "text-[var(--attention)]" : ""}`}
|
||||
strokeWidth={1.7}
|
||||
/>
|
||||
<span className="hidden flex-1 text-[13px] font-medium lg:inline">New design</span>
|
||||
|
||||
@@ -216,7 +216,7 @@ const StatusBar = ({ workspaceName, focusedWindowLabel, model, tokensUsed, costU
|
||||
<button onClick={onNotificationClick} className="flex items-center gap-1 text-muted-foreground hover:text-honey transition-colors" aria-label={`Notifications${unreadNotifications > 0 ? ` (${unreadNotifications} unread)` : ''}`}>
|
||||
<Bell className="w-3.5 h-3.5" />
|
||||
{unreadNotifications > 0 && (
|
||||
<span className="min-w-[15px] h-[15px] rounded-full bg-[var(--honey)] text-[10px] leading-none text-[#1a1407] flex items-center justify-center font-bold px-1 whitespace-nowrap">
|
||||
<span className="unread-badge min-w-[15px] h-[15px] rounded-full bg-[var(--honey)] text-[10px] leading-none text-[#1a1407] flex items-center justify-center font-bold px-1 whitespace-nowrap">
|
||||
{unreadNotifications > 9 ? '9+' : unreadNotifications}
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -1634,7 +1634,7 @@ const ChatApp = ({
|
||||
title="Waggle picked the model — click to override"
|
||||
className={STRIP_PILL}
|
||||
>
|
||||
<DotLive tone="healthy" size={7} />
|
||||
<DotLive tone="healthy" size={7} className="decor-dot" />
|
||||
<span className="max-w-[82px] truncate font-mono text-[var(--text-2)] sm:max-w-[140px]">
|
||||
{currentModel ? formatModelLabel(currentModel) : 'auto'}
|
||||
</span>
|
||||
|
||||
@@ -315,7 +315,7 @@ function GreetingHeader({
|
||||
<header className="mb-9">
|
||||
<div className="mb-4 flex items-center justify-between gap-3">
|
||||
<div className="flex items-center gap-2 font-mono text-[11px] uppercase tracking-[0.12em] text-[var(--honey-text)]">
|
||||
<DotLive tone="healthy" size={7} />
|
||||
<DotLive tone="healthy" size={7} className="decor-dot" />
|
||||
<span>{formatBriefingDate(date)}</span>
|
||||
{formatClock(date) && <span className="text-[var(--text-tertiary)]">· {formatClock(date)}</span>}
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@ interface ModelPillProps {
|
||||
export function ModelPill({ mode = 'auto', model, onClick, title, className }: ModelPillProps) {
|
||||
const content = (
|
||||
<>
|
||||
<DotLive tone="healthy" size={7} />
|
||||
<DotLive tone="healthy" size={7} className="decor-dot" />
|
||||
<span className="font-mono text-[12px] text-[var(--text-2)]">
|
||||
{mode ? <span className="text-[var(--text-dim)]">{mode} · </span> : null}
|
||||
{model}
|
||||
|
||||
@@ -39,7 +39,7 @@ export function OvernightHero({
|
||||
/>
|
||||
<div className="relative">
|
||||
<div className="mb-3 flex items-center gap-2 font-mono text-[11px] uppercase tracking-[0.1em] text-[var(--text-muted)]">
|
||||
<DotLive tone="intel" size={7} />
|
||||
<DotLive tone="intel" size={7} className="decor-dot" />
|
||||
{eyebrow}
|
||||
</div>
|
||||
<p className="max-w-[60ch] text-[clamp(19px,2.4vw,26px)] font-semibold leading-[1.4] text-[var(--text)]">
|
||||
|
||||
Reference in New Issue
Block a user