Panels & chrome Button
// Button

Button

Chamfered HUD action with a bottom-right cut; variants shift emphasis through edge + fill, not colour.

.talos-button is the chamfered call-to-action. It rides the chamfer engine: a real 1px border, a clip-path that cuts the bottom-right corner, and a 1px diagonal drawn along the cut, so the hairline is continuous round the corner at any width. Emphasis is monochrome — variants move the edge brightness and fill, never the hue — so the button reads its weight from contrast, not colour. Render <a> when it links, <button> when it acts.

Variants

PREVIEW
Primary
<a class="talos-button" href="#">…</a>
<button class="talos-button talos-button--secondary">…</button>
<button class="talos-button talos-button--ghost">…</button>
<button class="talos-button talos-button--solid">…</button>

.talos-button alone is the primary (bright edge, solid fill). --secondary dims the edge for an alternative action; --ghost drops the fill to transparent for a tertiary, text-weight control that fills only on hover. --solid is the loud call to action: light fill, dark label.

Sizes

PREVIEW
<button class="talos-button talos-button--xs">…</button>
<button class="talos-button talos-button--sm">…</button>
<button class="talos-button">…</button>
<button class="talos-button talos-button--lg">…</button>

Default (md) is 2.5rem tall. --xs is 1.75rem, the same height as a .talos-flag, for dense rows. --sm tightens height + padding for toolbars; --lg grows to 3rem with wider padding for a hero CTA. Combine one variant with one optional size: talos-button talos-button--ghost talos-button--sm.

Disabled

PREVIEW
<button class="talos-button" disabled>Locked</button>

[disabled] / :disabled dims to 0.5 and removes pointer events.

Selected

PREVIEW
Current
<button class="talos-button talos-button--ghost" aria-pressed="true">Pressed</button>
<a class="talos-button talos-button--ghost" href="/docs/" aria-current="page">Current</a>

aria-pressed="true" (toggles) and aria-current other than false (current-location links) recolour the edge and label to --talos-accent. The state lives on the ARIA attribute, so the markup and the look cannot disagree.

Markup

.talos-button needs no child element: a bare <a> or <button> carries the cut. The optional .talos-button__label wraps content that mixes text and icons. The Astro <Button> renders the same markup:

---
import Button from "@j_shelfwood/talos-ui/astro/Button.astro";
---
<Button variant="ghost" size="sm" href="/launch">Launch</Button>
<a class="talos-button talos-button--ghost talos-button--sm" href="/launch">
  <span class="talos-button__label">Launch</span>
</a>

variant (default primary) and size (default md) add their modifier class only when they differ from the default; the slot always lands in .talos-button__label. Without href it renders a <button>.

Classes

ClassKindEffect
.talos-buttonbaseprimary — solid fill, bright edge, md size
.talos-button--secondaryvariantdimmer edge, alternative action
.talos-button--ghostvarianttransparent fill, fills on hover
.talos-button--solidvariantlight fill, dark label — the loud call to action
.talos-button--xssizedense — 1.75rem, tight padding
.talos-button--smsizecompact — 2.25rem, tighter padding
.talos-button--lgsizehero — 3rem, wider padding
.talos-button__labelelementoptional content wrapper (inline-flex, inherits the gap)
[aria-pressed="true"] / [aria-current]stateaccent edge + label
[disabled] / :disabledstatedims to 0.5, blocks pointer events