Taskbase — Header and Button Design Direction¶
Research for request #1001 (task #1002), which asks for a more modern Taskbase UI, starting with the header and the buttons: "One thing i dont like is the visual of squared buttons in the header its already present alover the website. also using the width would be nice." The document surveys how five modern products style their header and buttons, then proposes three directions for Taskbase and recommends one. Decision task #1003 chooses the direction. No UI code changes until it is answered.
Outcome¶
Decision #1003 chose direction A (pill buttons). Task #1004 built the shared button style set
in Skatzi/taskbase. It differs from the shared groundwork
below: the .btn-* names, --radius-pill and the square icon button there describe the
proposal, not the code.
- Classes (
ui/src/app.css): a new namespace,.buttonplus one variant.button-primary,.button-secondary(outlined, the default),.button-ghost,.button-dangeror.button-danger-ghost;.button-sm/.button-lg(md has no class);.button-icon(always round). Underpointer: coarseevery.buttonis 44 px. A pressed.button-secondary(aria-pressed="true") is tinted, and an icon button's text glyph (×, ←) is 18 px. - Tokens (light and dark palettes):
--radius-control9999px,--radius-input6px,--radius-card12px,--control-h-sm/md/lg28 / 36 / 44 px,--control-px-sm/md/lg12 / 16 / 20 px,--focus-ring(2px solid--c-accent) and--focus-ring-offset(2px), and the fill steps--c-tint,--c-tint-strong,--c-accent-active,--c-danger-solid-hand--c-danger-solid-active. In direction A--radius-controlis the pill.--radius-inputis today's 6 px input corner and, since task #1056, set on every text field, select and textarea class (.input,.textarea,.add-task-input,.modal-title-input,.modal-desc-textarea,.modal-select,.md-editor); direction A's 8 px inputs are a change to that one token.--radius-cardis applied since the header rebuild (#1005), on the user menu card and the narrow-screen sheet. The full token set is in Theme tokens. - Components (
ui/src/Button.jsx):Buttontakesvariant,size(sm,md,lg) andloading(disabled,aria-busy, a spinner over the label at the same width), defaults totype="button"and passes every other prop and the ref through.IconButtonis round and icon-only, defaults to the ghost variant and needslabel, which becomes itsaria-labelandtitle.buttonClassName({ variant, size, icon })gives a router<Link>or an<a>the same look. - States: hover and active are background steps, focus is the
--focus-ring, disabled isopacity: .5. No gradients, lifts or shadows.
Task #1005 rebuilt the header to direction A:
- Header (
Headerinui/src/App.jsx): a flat#2c1810(--c-header-bg) bar across the full width,--header-h56 px, 24 px side padding and a 1 px bottom border, with no gradient or shadow. Left: logo, name and version. Right: Organizations and Runners (ghost pills viabuttonClassName), the Dev mode pill, the themeIconButtonand the user menu. Organizations (task #1023) links to/, as the brand does.orgsCurrentgives itaria-current="page"on/andaria-current="true"under/organizations/, and the header shows it tinted then. - User menu: a ghost pill with a round initials avatar, the name and a caret. The Needs
attention count is the avatar's badge. Two differences from the proposal: the open-chat
count is no longer on the header bar, only on the menu's Agent chat item, and screen
readers hear ", N need attention". The menu is a 12 px (
--radius-card) card of ghost-button rows. Each row starts with a 16 pxaria-hiddenline icon (MenuIcon, task #1026): the paths are inMENU_ICONSinui/src/App.jsx, drawn after Lucide likediagramIcons.jsx, with no icon library. Sign out sits below a divider (.user-menu-separator); without sign-in (Dev mode) neither is shown. - Ghost buttons on dark surfaces:
.button-ghostreads the optional tokens--button-ghost-fg,--button-ghost-fg-h,--button-ghost-tintand--button-ghost-tint-strong, and falls back to the normal colours..headersets them, and sets--focus-ringto white, so the shared ghost buttons read light on brown..user-menu-listresets them. - Below 768 px (
useNarrow): the ☰ toggle is gone. The version, Organizations, Runners and the theme leave the bar. The avatar becomes a 44 px round button that opens a full-width sheet of 44 px rows: Organizations, Needs attention, Agent chat, Runners, Settings, "Switch to … mode", then the divider and Sign out. Every row has its icon, the theme row the sun or moon of the mode it switches to. .page:max-width: 1600px,padding-inline: clamp(16px, 3vw, 40px). Reading pages keep their own left-alignedmax-width.
Migration (task #1006). Every button in the UI now uses Button, IconButton or
buttonClassName. The old .btn, .btn-primary, .btn-ghost, .btn-danger, .btn-ghost-sm,
.btn-danger-sm, .modal-*-btn, .md-toolbar-btn and other per-feature button classes are
deleted; do not add new ones. These controls are not pills on purpose and keep their own styles:
- Tabs:
.org-tab,.md-editor-tab,.session-tabs. - Segmented controls, now inside a pill group:
.prio-btn,.usage-seg-btn,.runner-tier-toggle. - Whole-row toggles and list items:
.agent-row-head,.attention-group-toggle,.request-toggle,.chat-runner-bar,.diagram-member,.diagram-history-item. - Chips:
.request-chip,.diagram-chip. - Inline text buttons:
.sort-btn,.attention-reference-toggle. - The chat drawer's scrim, the round robot launcher
.chat-fab, and React Flow's zoom controls (a pill group).
Theme tokens (task #1056)¶
A theme is one block of CSS custom properties. Since task #1056 (Skatzi/taskbase#419),
ui/src/app.css takes every colour, corner, spacing step, border width, font and icon stroke
from its two token blocks: :root (light) and :root[data-theme="dark"] (dark). A token with
no dark value is the same in both palettes. The values are in those blocks; the groups are:
| Group | Tokens | Notes |
|---|---|---|
| Colours | --c-* |
Named by role, not by hue. Besides the base palette (--c-bg, --c-surface, --c-text, --c-accent, …): the header --c-header-bg, --c-header-fg, --c-header-fg-muted, --c-header-fg-faint, --c-header-tint, --c-header-border; text on solid fills --c-on-solid; status dots and bars --c-status-todo, -doing, -done, -blocked; usage chart series --c-series-1 … -7 and --c-series-other; shadow colours --c-shadow-*. |
| Corners | --radius-2xs 2, -xs 3, -sm 4, -badge 5, --radius 6, -lg 8, -xl 10, -card 12, -sheet 14 px; --radius-pill 999px; --radius-round 50% |
Fixed shapes. --radius-pill keeps badges and chips round whatever the button shape is. |
| Control shapes | --radius-control 9999px, --radius-input 6px |
The direction switches: --radius-control 8px gives direction B's buttons, --radius-input 8px direction A's inputs. |
| Spacing | --space-N = N × 2 px, from --space-1 (2px) to --space-24 (48px) |
Used for padding, margin and gap. Only the steps in use exist. Odd and negative offsets stay literal. |
| Borders | --border-width 1px |
|
| Fonts | --font-body (Inter, then the system stack), --font-heading (same as body), --font-mono |
|
| Icons | --icon-stroke 2px |
Set as an inline strokeWidth style on the line-icon SVGs. Diagram and robot icons draw at 0.9 of it. |
In JSX, colours are var(--c-…) strings; SVG fills take them through style, because SVG
attributes cannot read custom properties.
Guard. ui/src/tokens.test.js (run by npm test in ui/) fails on:
- a hex,
rgb()orhsl()colour inapp.cssoutside the two token blocks; - a literal
border-radiusother than0orinheritthere; - a colour string literal in any
.jsxfile (tests excepted).
To restyle the UI, change the token blocks; a new colour or corner gets a token first.
What Taskbase has today¶
All styling is in ui/src/app.css (about 2,600 lines). Screenshots are from npm run dev at
1600 px and 390 px wide, with no API behind the UI, so the pages show load errors. Only the
header and the buttons matter here.



What makes it look "squared":
- The radius is not the problem.
--radiusis 6px, the same value GitHub (PrimerborderRadius-medium) and Atlassian (radius.medium, "buttons, inputs…") use for buttons. Three other things make the header look boxy: - Every header item is a bordered, filled box.
.header-link,.header-badge,.theme-toggleand.user-menu-buttoneach have a translucent white fill and a 1px border. That makes four separate rectangles on the right. None of the surveyed products outline their header items. Their nav items are ghost buttons with no fill or border until hovered, and only one call to action is filled. - Sizes vary.
.btnis about 37 px tall,.btn-ghost-smabout 26 px, the header items 30–32 px, and some controls have their own padding. Nothing lines up on a scale. - Heavy decoration.
.btn-primaryhas a gradient, a coloured shadow and a 1px lift on hover. The disabled primary is a solid dark-brown block that looks more clickable than the enabled ghost button next to it. - No shared button. About 200
<button>elements in 15 files (108 inApp.jsx). They use.btn+.btn-primary/.btn-ghost/.btn-danger(about 100 uses),.btn-ghost-sm(24),.btn-danger-sm, and about 28 one-off button and toggle classes (.header-link,.theme-toggle,.prio-btn,.modal-save-btn,.add-task-confirm, …). Focus styles are defined in 29 places, so they look different from control to control. - Width.
.headerspans the viewport, but.pageismax-width: 1200px; margin: 0 autowith 40 px padding. At 1600 px the content is 1,120 px wide and 240 px on each side stays empty, so 30 % of the screen is unused. Board columns areflex: 1, so a wider page directly gives wider columns. - Below 768 px the right side collapses behind a ☰ button into a dropdown of full-width 44 px rows: Runners, the Dev mode badge, the theme toggle and the user menu. The rows are the same bordered boxes, and the theme toggle is a full-width row holding only a moon icon.
- Other bars. The diagram page (
DiagramCanvas.jsx) has its own top bar and toolbar.ChatPage.jsxandChatLauncher.jsxhave their own buttons. Every direction below gives them the same button classes. - Header contents. The header holds the brand and version, Runners, the theme toggle and the user menu. Needs attention (task #972), Agent chat and Settings are in the user menu. The directions below change how those items look, not where they live. Only direction C moves navigation.
Survey¶
Figures marked measured were read with the browser's computed styles on 2026-10-15 (public pages, signed out). Design-system figures come from the published tokens and component docs. Signed-in app layouts are described from the products' current UI. They were not measured, because that needs accounts.
| GitHub (Primer) | Jira (Atlassian DS) | Vercel (Geist) | Linear | Notion | |
|---|---|---|---|---|---|
| Button shape | Rounded rectangle, 6px (--borderRadius-default) |
Rounded rectangle, 6px (radius.medium: "buttons, inputs, navigation items"); radius.full only for people (avatars) |
Rounded rectangle, 6px (rounded-md) by default; shape="rounded" gives a pill, circle/square for icon-only |
Pill (9999px) for header nav and calls to action (measured); round icon buttons in the app chrome | Rounded rectangle, 4–8px (measured nav items) |
| Heights | sm 28, md 32, lg 40 (--control-*-size); xsmall 24 and xlarge 48 also exist |
default 32, compact 24 | small 32, medium 40, large 48 | 32 nav items, 28 icon buttons (measured) | 30–34 (measured); about 28 in the app |
| Variants | default, primary, invisible (ghost), danger; IconButton |
default, primary, subtle (ghost), warning, danger, discovery; IconButton (round or square) |
default (solid), secondary (outlined), tertiary (ghost), error, warning | primary (light fill), ghost; icon-only | ghost nearly everywhere, one blue primary |
| Hover / focus / disabled | Background step on hover, no lift or shadow; 2px focus outline in the accent blue; disabled is a muted fill and muted text | Background step; 2px focus ring offset 2px (color.border.focused); disabled is a neutral fill and muted text |
Background step; focus ring; disabled is muted | Background tint on ghost items | Background tint (rgba(55,53,47,.08)) |
| Padding (md) | 12px inline (paddingInline-normal), 6px block |
12px | about 10–12px | 12px | 8–10px |
| Header | Full width, 64–72 px (72 measured signed out). Left: ☰, logo, breadcrumb (owner / repo). Right: search, icon buttons, round avatar. | 48–56 px top bar, full width. Left: sidebar toggle, app logo. Centre: search and Create. Right: notifications, help, settings, avatar. | 64 px (measured), full width. Left: logo / team / project switcher as breadcrumbs. Right: feedback, notifications, avatar. A tab row sits under it. | No global app header: a left sidebar holds workspace, inbox and teams. The page top bar holds a breadcrumb and icon buttons. Marketing header 73 px (measured). | Left sidebar. A 45 px page bar holds the breadcrumb, share and ••• |
| Mobile | ☰ opens a side sheet; avatar stays | Sidebar becomes a drawer | Breadcrumb shortens; menu sheet | Sidebar becomes a drawer | Sidebar becomes a drawer |
| Content width | container-xl 1280 px for repository pages (measured); lists and Projects boards are full width |
Fluid next to the sidebar; boards full width | Centred column on dashboards, full width for logs and tables | Full width | 900 px reading width with a per-page Full width toggle |
What they agree on:
- The header is chrome, not a row of buttons. Nav items are ghost (no border, no fill), one action at most is filled, people are a round avatar, and the header is full width with content edge-aligned left and right.
- One button scale. Three heights on a 4 px grid, one radius per role (controls, cards, people), and the same paddings everywhere.
- Flat fills. No gradients or coloured shadows on buttons. Hover changes the background, focus draws a ring, and disabled is muted rather than dark.
- Width follows the content. Boards, tables and lists use the full width. Reading pages (settings, forms, a single item) keep a narrower column.
- Shape is a brand choice. Pills (Linear, Geist's
roundedshape) feel softer and more "modern consumer". 6–8 px rectangles (GitHub, Atlassian, Notion) are denser and suit tables and toolbars.



References:
- GitHub Primer — Button,
Size primitives,
@primer/primitivesradius tokens - Atlassian Design System — Button, Icon button, Radius tokens
- Vercel Geist — Button
- Linear — linear.app (no public design system; computed styles of the site header)
- Notion — notion.com (no public design system; computed styles of the site header)
Shared groundwork (every direction)¶
The proposal, as written before decision #1003. For what was built, see Outcome.
Whatever the shape, the first build task is the same:
- Tokens at the top of
app.css:--radius-control,--radius-card,--radius-pill: 9999px,--control-h-sm/md/lg,--control-px-sm/md/lg,--focus-ring, in the light and dark palettes. - One button style set:
.btnwith.btn-sm/.btn-lgand the variants.btn-primary,.btn-secondary(outlined),.btn-ghost(no border at rest),.btn-danger,.btn-danger-ghost,.btn-icon(square or round,aria-labelrequired). Plus a smallButton/IconButtonReact wrapper that setstype="button"and requires a label on icon-only buttons. - States: hover is a background step (no lift, no shadow).
:focus-visibleis a 2px ring in--c-accent, offset 2px, the same everywhere. Disabled isopacity: .5; cursor: not-allowedon the normal colours, so it never looks stronger than an enabled button. Loading keeps the width and shows the spinner. - Sizes: sm 28, md 36, lg 44 px. md stays close to today's 37 px, so dense pages do not
reflow. lg equals the 44 px touch target the
pointer: coarserules already enforce, and those rules then map to.btn-lginstead of a list of classes. - Migration: the ~28 one-off classes become variants. The diagram top bar, chat page and launcher use the same classes.
Direction A — Pill buttons, quiet full-width header, wide content (recommended)¶
The direct answer to "no squared buttons": every button and header item is a pill, the header items lose their boxes, and the content uses the width.
Tokens
| Token | Value | Use |
|---|---|---|
--radius-control |
9999px (pill) | buttons, header items, segmented controls, chips |
--radius-input |
8px | inputs, selects, textareas. Pill inputs read badly with multi-line text. Built at 6px, today's corners (task #1056); 8px is a one-token change. |
--radius-card |
12px (was 8px) | cards, columns, modals, menus |
--control-h-sm/md/lg |
28 / 36 / 44 px | |
--control-px-sm/md/lg |
12 / 16 / 20 px | Pills need a little more side padding than rectangles. |
--header-h |
56px (was 60px) |
Variants: primary (solid --c-accent, white text), secondary (1px --c-border, surface
fill), ghost (transparent, tint on hover), danger (solid), danger-ghost (red text, red tint on
hover), icon (round, 28/36/44).
Header
┌──────────────────────────────────────────────────────────────────────────────────────┐
│ [🦫 Taskbase v1.183] Org ▸ Project (Runners) ( ☾ ) (● dunk ▾ ②) │
└──────────────────────────────────────────────────────────────────────────────────────┘
full width, 56 px, 24 px side padding; ( ) = ghost pill, no border at rest
- Left: logo, name and version, then an optional breadcrumb of the current organization and project. The breadcrumb is ghost pill links and can be its own follow-up.
- Right: Runners as a ghost pill. The theme toggle is a round icon button. The user menu is a round avatar (initials) with the Needs attention count as a badge on it, as task #972 places it. The dropdown is a 12px-radius card with pill-shaped hover rows. The Dev mode badge becomes a small pill.
- The background is flat
#2c1810with a 1px bottom border. The 135° gradient and the 16px shadow go.
Content width: .page becomes max-width: 1600px with padding-inline: clamp(16px, 3vw,
40px). The board, organization task lists, runs and usage tables use that width. Reading pages
(.attention-page 720, settings, .my-chats 900, forms) keep their own max-width, now
left-aligned inside the wider page so they line up with the page title. At 1600 px the board
gains about 400 px.
Below 768 px: 56 px header with the logo (no version), then the avatar with its badge. The ☰
dropdown goes. The avatar opens a full-width sheet: Needs attention, Agent chat, Runners,
Settings, theme, sign out, each a 44 px row with a pill hover and no border. Buttons on the page
use .btn-lg under pointer: coarse. Page padding is 16px.
Effort: medium. About three tasks: (1) tokens, button style set and Button/IconButton;
(2) header and mobile sheet; (3) migrating the ~200 buttons and checking the wide .page page
by page, including the diagram and chat bars. Pills also need the segmented controls (.org-tab,
.prio-btn groups) re-cut so only the outer ends round off.
Risk: pills take more horizontal room in dense rows (task cards, table row actions). Use
.btn-sm or icon buttons there.
Direction B — Softer rounded rectangles (GitHub / Atlassian style)¶
Keep rectangles but drop the boxes: the "squared" look goes away mostly by removing borders and fills, not by changing shape.
Tokens: --radius-control 8px (was 6px), --radius-card 12px, --radius-pill only for the
avatar, badges and chips. Heights and paddings as in the groundwork, with paddings 10 / 14 / 18
px.
Variants: the same list as A, with rectangular buttons. Icon buttons are 8px-radius squares, as in GitHub and Atlassian.
Header
┌──────────────────────────────────────────────────────────────────────────────────────┐
│ [🦫 Taskbase v1.183] Runners ☾ (●) dunk ▾ ② │
└──────────────────────────────────────────────────────────────────────────────────────┘
full width, 56 px; items are ghost buttons with an 8px-radius tint on hover
The header changes like A, but items tint as rounded rectangles on hover. The user menu shows a round avatar plus the name. The gradient can stay or go; it is independent of the shape.
Content width: .page grows to max-width: 1440px. The board becomes full width
(max-width: none) because columns benefit most. Other pages stay centred.
Below 768 px: the ☰ stays, but the dropdown becomes a sheet of borderless 44 px rows. The moon row becomes a "Theme: dark / light" row with a label.
Effort: small to medium, two or three tasks. Less re-cutting than A because shapes barely change, but the same migration of one-off classes.
Risk: it may not feel different enough. 8px rectangles are still rectangles, and the request names the shape.
Direction C — App shell with a left sidebar (Linear / Jira style)¶
Rethink navigation: a slim full-width top bar and a collapsible left sidebar. Content runs from the sidebar to the right edge.
Tokens: pill buttons as A (--radius-control 9999px, inputs 8px, cards 12px), sidebar items
8px-radius ghost rows 32px high, top bar 48px.
Layout
┌───────────────┬──────────────────────────────────────────────────────────────────────┐
│ 🦫 Taskbase │ Org ▸ Project ▸ Board (+ New task) (●) │ 48 px
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ ⚑ Needs att. ②│ │
│ 💬 Agent chat │ content, full width │
│ ⚙ Runners │ │
│ ── Orgs ── │ │
│ Skatzi │ │
│ · Taskbase │ │
│ · Platform │ │
│ ☾ ⚙ Settings │ │
└───────────────┴──────────────────────────────────────────────────────────────────────┘
sidebar 240 px, collapsible to 56 px icons (remembered in localStorage)
Content width: no max-width on lists and boards. Reading pages keep their own columns.
Below 768 px: the sidebar becomes a drawer behind ☰ in the 48 px top bar. The chat page's own
drawer (ChatList) has to be reconciled with it.
Effort: large, five or more tasks. New navigation component, organization and project listing in the sidebar, every route's page header reworked, the chat list drawer and the robot launcher placement revisited. It also moves Needs attention and Agent chat out of the user menu, which reverses the placement chosen in task #972. That is a product decision of its own.
Risk: biggest change and longest without visible progress. It solves more than the request asks for.
Recommendation¶
Direction A. It answers both halves of the request directly. The shape changes from square
to pill, and the width changes from 1,120 px to up to 1,600 px. It also fixes what makes today's
header boxy: bordered and filled items, mixed sizes, gradients. It keeps the information
architecture, so it builds in about three tasks. B is the fallback if pills feel too soft once a
first page is built. The token layer makes switching --radius-control from 9999px to 8px a
one-line change, so the risk of choosing A is low. C is a later step, not a prerequisite.
Brand: the brown and gold palette, the beaver logo and the dark-brown header stay. They are
what makes Taskbase recognisable, and they already have a dark-mode counterpart. The
gradients go. The header becomes flat #2c1810, and .btn-primary becomes solid
--c-accent with --c-accent-h on hover, with no coloured shadow or lift. None of the surveyed
systems use gradients on controls, and the gradient is part of why the primary button looks
heavy. Keeping the header gradient is a free-text tweak ("A, but keep the gradient") that costs
nothing extra.
Next steps¶
- Decision task #1003 picks the direction.
- Then "Build a shared Button component and style set" (the groundwork above, in the chosen shape), the header rebuild, and the button migration across the UI.