Radius

Pills for every one-line control, 14 and 11 for the card, 10 for overlays, 6 for tags.

Rules

  1. radius-pill-controls MUST Round every one-line control to rounded-pill: buttons, fields, selects, chips, the segmented control. Because the pill is one of the three things only Glaze has, and a squared field beside a pill button reads as another system.
    • Correct: <div className="field">
    • Wrong: <div className="field rounded-tag">
  2. radius-lines-of-text MUST Give a box that holds lines of text rounded-overlay (10px): a textarea, a menu, a popover, a dialog, a code block. Because a pill around several lines pinches the first and last line at the ends, and the text runs into the curve.
    • Correct: <pre className="well rounded-overlay p-3">
    • Wrong: <pre className="well rounded-pill p-3">
  3. radius-card-concentric MUST Build a card from shell (14px) and panel (11px); never round a panel to the shell's corner. Because the panel sits 3px inside the shell, so 11px keeps the two corners concentric and 14px leaves a wedge at each corner.
    • Correct: <div className="shell"><div className="panel">
    • Wrong: <div className="shell"><div className="panel rounded-shell">
  4. radius-tags SHOULD Round a box inside a row or an overlay, a menu item or a tag in a table, with rounded-tag (6px). Because a 6px corner inside a 10px overlay with 4px of padding stays concentric.
  5. radius-named NEVER Write a stock or arbitrary corner such as rounded-md or rounded-[8px]. Because Glaze's theme has no stock corners, so the class draws nothing or a corner no other part uses.
    • Correct: <div className="rounded-overlay">
    • Wrong: <div className="rounded-md">

Tokens

TokenRoleUse forNot forLight
--radius-pillevery one-line controlevery one-line controlboxes of text999px
--radius-shella card's grey shellthe card shellthe panel inside it14px
--radius-panelthe white panel inside the shell, 3px in, so the corners stay concentricthe card paneloverlays11px
--radius-overlaya box that holds lines of text: overlays and text areasmenu, popover, dialog, textarea, code blockcontrols10px
--radius-row-focusa focused row's corners: the panel's inner edge, so its ring follows the panel's corneritem, data grid rowcalc(var(--radius-panel) - var(--line-width))
--radius-taga box inside a row or an overlaymenu item, tag in a row, kbdcontrols6px

Decision table

You needUse
Button, field, select, chiprounded-pill
Cardshell and panel
Menu, popover, dialog, textarearounded-overlay
Menu item, tag in a rowrounded-tag

Scale

pill, 14, 11, 10 and 6px.

Reject list

  • No square controls, no stock corners, no arbitrary radii.
  • Space: A 4px grid, 32px controls and 36px rows.
  • Borders and lines: One hairline weight, from the faint card edge to the field line that darkens on focus.