// Field

Field

The label + control + metadata column that lets a single state class recolour the whole group.

.talos-field is the layout convention, not a control: a vertical stack of a .talos-label, the control, and one line of metadata (__help / __error / __counter). The validation class lives on the field, so --error / --success recolour the nested control’s chamfer and the message together — one class encodes the whole group’s state.

Default

PREVIEW
Lowercase, no spaces.
<div class="talos-field">
  <label class="talos-label">Hostname</label>
  <input class="talos-input" placeholder="atlas-01" />
  <span class="talos-field__help">Lowercase, no spaces.</span>
</div>

.talos-label is the tiny uppercase HUD voice (display font, wide tracking). .talos-field__help is the muted metadata line below the control.

Required

PREVIEW
<label class="talos-label talos-label--required">API key</label>

.talos-label--required appends a --talos-danger asterisk via ::after. No extra markup — the asterisk is part of the label.

State — error

PREVIEW
Out of range (1–65535).
<div class="talos-field talos-field--error">
  <label class="talos-label talos-label--required">Port</label>
  <input class="talos-input" value="99999" />
  <span class="talos-field__error">Out of range (1–65535).</span>
</div>

.talos-field--error repaints the nested .talos-input / .talos-textarea chamfer in --talos-danger (and recolours a nested .talos-select border). .talos-field__error is the danger-coloured validation line.

State — success

PREVIEW
Resolves.
<div class="talos-field talos-field--success">
  <label class="talos-label">Hostname</label>
  <input class="talos-input" value="atlas-01" />
</div>

.talos-field--success repaints the nested control’s chamfer in --talos-success. Pair with __help rather than __error — there’s no green message class.

Counter

PREVIEW
21 / 160
<div class="talos-field">
  <label class="talos-label">Bio</label>
  <textarea class="talos-textarea"></textarea>
  <span class="talos-field__counter">21 / 160</span>
</div>

.talos-field__counter is a right-aligned, tabular-nums character count in the display font — typically paired with a <textarea>.

Classes

ClassEffect
.talos-fieldvertical label + control + metadata stack (gap: 0.5rem)
.talos-labeluppercase HUD label, display font, wide tracking
.talos-label--requiredappends a --talos-danger asterisk after the label
.talos-field__helpmuted metadata line below the control
.talos-field__error--talos-danger validation line
.talos-field__counterright-aligned tabular-nums character count
.talos-field--errorrecolours nested control chamfer / select border to --talos-danger
.talos-field--successrecolours nested control chamfer / select border to --talos-success

Wraps any of the text controls, .talos-select, or toggle rows.