Panels & chrome Chamfer & flag
// Chamfer & flag

Chamfer & flag

The one engine behind every cut corner — a real 1px border, a clip-path, and a 1px diagonal per cut — plus the flag tag built on it.

Every chamfered talos surface (panel, button, flag, input, textarea, select, alert, toast, stat, readout, avatar) is drawn by one mechanism: a real 1px border, a clip-path polygon that cuts the corners, and one 1px diagonal per cut painted as a background gradient in that corner’s own box. clip-path alone slices the border off the cut; the gradient draws the hairline the border cannot, so the edge is continuous round every cut. Each cut is an exact N px at any element size, the fill may be translucent, and no pseudo-element is spent.

.talos-chamfer puts that engine on your own markup.

Chamfer

PREVIEW
Default
—md
—sm
—btn
—flag
<div class="talos-chamfer">…</div>
<div class="talos-chamfer talos-chamfer--md">…</div>
<div class="talos-chamfer talos-chamfer--sm">…</div>
<div class="talos-chamfer talos-chamfer--btn">…</div>
<div class="talos-chamfer talos-chamfer--flag">…</div>

The default is the panel geometry: --talos-chamfer (14px) on top-right and bottom-left. The modifiers pick the other house shapes by role: --md and --sm cut the same two corners at 10px and 8px, --btn cuts bottom-right only (10px), --flag cuts top-right only (8px).

Custom cuts and colours

PREVIEW
Top-left + bottom-right
<div class="talos-chamfer" style="--_tl: 20px; --_tr: 0px; --_br: 20px; --_bl: 0px;
  --_edge: var(--talos-accent); --_fill: hsl(var(--talos-accent-hsl) / 0.08)">…</div>

The engine reads six custom properties. Set them on the element (or in your own class) and nothing else needs to move:

PropertyEffect
--_tl --_tr --_br --_blcut size per corner; 0px leaves the corner square
--_edgehairline colour (border and diagonals)
--_fillbackground colour; may be translucent

State changes rebind --_edge and --_fill. The engine has specificity 0, so any component rule or consumer class overrides it. An element that clips its own box cannot show an outline; give it a :focus-visible edge instead.

Flag

PREVIEW
DefaultActiveMutedWarningDanger
<span class="talos-flag">Default</span>
<span class="talos-flag talos-flag--active">Active</span>
<span class="talos-flag talos-flag--muted">Muted</span>
<span class="talos-flag talos-flag--warning">Warning</span>
<span class="talos-flag talos-flag--danger">Danger</span>

.talos-flag is the HUD tag and status chip: a display-face uppercase label with a top-right cut. It lines up with .talos-button--xs. The status modifiers rebind edge, fill, and text colour together.

Toggle flag

PREVIEW
<button class="talos-flag" aria-pressed="true">Operator</button>
<button class="talos-flag" aria-pressed="false">Background</button>

On a <button> with aria-pressed, the flag reads as on or off: pressed gets a strong edge and a light fill, unpressed is struck through in the disabled text colour. Use it for a legend that filters, as in the timeline and the graph canvas.

Classes

ClassEffect
.talos-chamferengine on any element; top-right + bottom-left cut, 14px
.talos-chamfer--mdsame corners, 10px
.talos-chamfer--smsame corners, 8px
.talos-chamfer--btnbottom-right cut, 10px
.talos-chamfer--flagtop-right cut, 8px
.talos-flagtag / status chip, top-right cut
.talos-flag--activebrighter edge, light fill, foreground text
.talos-flag--mutedtertiary text colour
.talos-flag--warningwarning edge, fill, and text
.talos-flag--dangerdanger edge, fill, and text