Buttons

Every button is one role times one size; the role says how loud, the size says where.

Rules

One primary action per screen. Secondary and tertiary actions are visually subordinate.

No trailing arrows on action-button labels. Get Started → / 보러 가기 → is banned: the button shape already signals action; the arrow is redundant decoration. Pure directional glyphs remain legitimate where direction IS the meaning: next/prev pagers, list-row chevron affordances (ChevronRight icon, never a text → appended to a label).

Every button is a role times a size, and nothing else sets its shape. The role says how loud the action is; the size says where it sits. Padding, height, radius and type size come from the size and are never hand-set at the call site, so the same action looks the same on every screen (Predictability, Spatial Memory). Each role has exactly ONE answer per platform; add a role only by replacing what it supersedes in this table, never by appending a row next to it.

RoleWebiOSAndroidUse
Filledbtn btn-filled (variant="filled"): solid brand-primary (blue-600), white labelAppButtonStyle(role: .filled)AppButton(AppButtonRole.Filled)THE one primary action on a screen: form submit, Post, sign in, the empty state's create
Tintedbtn btn-tinted (variant="tinted"): brand tint fill only, no border, no shadow; label blue-700 in light (brand blue on its own tint is 3.66:1 on the page ground, blue-700 is 4.72:1), blue-400 in darkAppButtonStyle(role: .tinted): brand-container fill, brand-on-container label (opaque, so the page ground never lowers it: 4.9:1 light, 5.9:1 dark; web uses blue-700 because its tint is translucent)AppButton(AppButtonRole.Tinted)Secondary action that is still brand business: Retry, back to list, browse more, see all
Outlinedbtn btn-outlined (variant="outlined"): surface fill + border + shadow-smAppButtonStyle(role: .outlined)AppButton(AppButtonRole.Outlined)Neutral action on the page ground: Cancel, Mark resolved, Export
Ghostbtn btn-ghost (variant="ghost"): no fill until hoverAppButtonStyle(role: .ghost)AppButton(AppButtonRole.Ghost)Tertiary, only inside a list, card or toolbar, where the container frames it
Ghost inversebtn btn-ghost-inverse: no fill, toast-action label, toast-action-press on hover and pressAppButtonStyle(role: .ghostInverse)AppButton(AppButtonRole.GhostInverse)Only on an inverse surface (toast-surface): the toast's one action. Ghost's own colors assume a light container and vanish there
(modifier) Destructivebtn-danger on filled or outlined, never a fifth role. Final confirm of an irreversible destructive action (the confirm dialog, the last step of a transfer): btn btn-filled btn-danger (variant="danger", red-600, white label). Trigger or row action that opens a confirm, or sits in a list: btn btn-outlined btn-danger (variant="danger-outlined", red label and border)destructive: true on the style: filled takes danger-fill with a white label (4.8:1), outlined takes the error label on the outlined border; never a hand-picked red (web outlined-danger uses red-600 / red-400 with a red border; aligning the hue across platforms is a follow-up)destructive = true on AppButton, the same two tokensDelete, leave, revoke, transfer

One primary look. The gradient hero (primary-btn, iOS brandActive on buttons) folded into Filled: there is no louder fill above it, and a screen's one decision is marked by being the only filled button, not by a special fill. Filled is blue-600 (brand-primary, #155CFB): white on blue-500 was 3.8:1, under the 4.5:1 AA floor for a 14px label; blue-600 is 5.3:1.

SizeWebSidesHeightType, radiusWhere
smbtn-sm (size="sm")12 (space-3)32 from md up with a fine pointer; 44 on phones and every touch screentext-xs, rounded-lgInside a widget, card, list row, toolbar, inline notice or section header
mdbtn-md (size="md", the default)16 (space-4)44text-sm, rounded-xlPage-level actions including the page header's trailing actions, dialog footers, a page's empty state and error Retry
lgbtn-lg (size="lg")24 (space-6)48text-base, rounded-xlThe one decision of a focused single-task screen (sign in, sign up, consent, pricing, a paywall) and its paired secondary, which is tinted lg

A button's size follows where it sits, never how important it feels: importance is the role.

Native sizes. The same three sizes with the same "Where", carried by AppButtonStyle(role:size:destructive:) (iOS) and AppButton(role, size, destructive) (Android); padding, height, type and radius are never set at the call site. Native is touch-only, so sm keeps the touch height and differs from md by sides, type and radius. Type is web +1: the native label scale already runs one step above web (labelPrimary is 15 where web label-primary is 14, and labelSecondary is 13 where web label-secondary is 12), and a button label that disagrees with the text beside it reads as another system, so consistency inside the platform wins over pixel equality with web.

SizeSidesMin height iOS / AndroidTypeRadius
sm1244 / 4813 semibold (buttonSmall)Radius.sm (10, web rounded-lg)
md1644 / 4815 semibold (labelPrimary)Radius.md (14, web rounded-xl)
lg2450 / 5617 semibold (buttonLarge)Radius.md

The heights follow the touch floor (44pt, 48dp); lg needs a visible step above md. On Android that is the M3 step to 56. On iOS it is 50, the height of a prominent full-width iOS call to action; 48 would sit 4pt above md and read as the same button. Heights are minimums: the label's Dynamic Type or font scale grows the button. Press scales to 0.98 and disabled is opacity 0.4, both as on web. Only outlined carries a shadow, matching web shadow-sm.

Icon-only buttons are a square of the same three heights: btn-icon beside the size class (sm 32 on a fine pointer and 44 on touch, md 44, lg 48), <Button size="icon-sm|icon|icon-lg">. Add btn-round (round on <Button>) where the button sits among round controls, such as header chrome beside the avatar or the sign-in button that shares the avatar's slot. The glyph is sized to the button: 16 to 18px in sm, 20px in md and lg. Every icon-only button carries an accessible name (aria-label / accessibilityLabel / contentDescription) that comes from the locale dictionaries like any visible string. An icon inside a labeled button takes no margin of its own: the size's gap spaces it.

An icon-only control shows it is a control at rest. With no label, the shape is the only signal, so a ghost icon button carries a resting fill: the muted circle the sidebar collapse button already uses, hover one step deeper (web: btn btn-ghost btn-icon, the fill comes with the role). Counter space: when the ground is already that fill (the PIN prompt's page-ground overlay), the ground declares --icon-rest and the circle takes the surface fill instead, so it never melts into what it sits on. A row that is one control is a button by its own fill (row-button), the way the profile completion row and a tinted "See all" chevron link are: a disclosure such as a briefing's script is never bare text with a trailing chevron, which reads as a heading. Exception, by convention: a post's action bar (reply, repost, like, share) keeps bare glyphs, because the row of them is itself the recognized control; it and any control on a surface whose colour it does not own (a game board tile) declare icon-bare, so the exceptions are one grep. Native: AppNavCircleButton is already this shape; a bare icon button on iOS or Android is the same defect.

Text link is not a button and not a fifth role: text that navigates or switches a step where nothing is being committed (Forgot password, Change email, a typo-fix Apply). Web is text-blue-600 dark:text-blue-400 font-medium; native is AppTextLink (Android) in brand-on-container (#155CFB light, #60A5FA dark), because brand-primary on the dark page is 3.75:1, under the 4.5:1 text floor. No container and no padding of its own; the touch target (44pt / 48dp) comes from around the text, never from stretching it to the row's width, and its pressed state is clipped to that target. When an action sits beside a filled button as its alternative (Create account next to Next), it is a tinted button, not a link.

Disabled and loading are styled by the element's own disabled / aria-disabled state inside btn (opacity 40, cursor-not-allowed); call sites add no opacity. A disabled <button> keeps pointer events, so a title or tooltip explaining why it is disabled stays reachable; the native disabled attribute already ignores clicks.

Web mechanics. <Button variant size> only maps to them, and a link styled as a button uses the same classes, so the two look identical; <Button href> forwards aria-label and title to the rendered link. Layout utilities (w-full, flex-1, shrink-0, margins, self-*) stay at the call site; padding and height never do, and a role class without btn is the old spelling.

One hover language across every role: the fill deepens, nothing else moves. Press is active:scale-[0.98]. A role that additionally darkens its border or bumps its shadow on hover reads as a different kind of control, which is what makes a set of buttons feel unrelated even when each one is individually fine.

Ghost is container-dependent, the others are not. Ghost has no fill and no border, so it only reads where something else supplies the frame. On the page ground it is invisible at rest. Neutral action on a page → outlined, always.

Rules:

  • Minimum tap target: 44x44pt (iOS) / 48x48dp (Android) / 44px web on touch, at every size
  • The web floor is the token target-min (Spacing table); btn-target-fixed keeps a narrow container's icon buttons on one row at large text (the post card, EXP-129)
  • One filled button per screen; a second action beside it is tinted, outlined or ghost
  • Red fill only on the final confirm of an irreversible destructive action (a payment is irreversible, not destructive); everywhere else destructive is the outlined form

Primary fill rule (every platform): the primary button is a solid brandPrimary fill on web, iOS and Android alike, the one primary look. The brandActive gradient is retired for buttons. iOS uses AppButtonStyle(role: .filled), Android AppButton(AppButtonRole.Filled).

  • AppTheme.Gradients.brandActive stays for non-button brand surfaces (hero art, progress accents); on a button it is migration debt, not precedent
  • Exception, unchanged: progress bars, pagination dots, tint overlays use flat brandPrimary

Liquid glass style (iOS): floating nav buttons: Every button that floats above a gradient or image background (nav bar, home hero, floating overlay) must use the GlassBackground modifier, not a flat solid fill.

  • ✅ AppNavCircleButton: use for all icon-only nav-bar slots (leading and trailing)
  • ✅ LiquidGlassButton: use for capsule-shaped floating actions
  • ✅ Profile avatar: same glass circle, progress ring overlaid on top
  • ❌ .background(AppTheme.Colors.surfaceSecondary) on any button that sits over a gradient: renders flat/opaque, so use .glassBackground() instead
  • Shadow standard: Color.black.opacity(0.12), radius: 6, y: 3 for circle buttons; opacity(0.15) for capsule buttons (LiquidGlassButton). Do not reduce below these values: lighter shadows make buttons disappear against pale backgrounds.
  • Tint and stroke follow the theme, as web's glass-surface does (bg-white/45 dark:bg-surface/45 border-white dark:border-black): tint surfacePrimary, stroke glassStroke (#FFFFFF light, #000000 dark). Never a literal white: in dark it turns a panel mid-gray and took the drawer's legal links to 1.30:1.
  • Text on a glass panel is on a ground, not on bg-surface: secondary text there is text-secondary-ground.

---

Share is one control

Passing something on is one Share button, never a row of ways to share. The button opens the platform's own share sheet: navigator.share on the web, ShareLink or UIActivityViewController on iOS, the Android Sharesheet. That sheet already offers saving the image, copying the link and every installed app, in the order the person uses them, so the page never repeats them: no separate Save image, Copy link, or per-network buttons ("X", "Threads", "Facebook", "Share to"), and no network intent URLs.

  1. The link always rides. It is the tagged link (playShareUrl for Play), plus one line of text naming the thing.
  2. An image only where files work. A touch-first device that accepts files gets the image with the link. A computer shares the link alone, because Chrome on macOS reports file sharing, then its sheet can close with nothing shared. Decision: tarot decideShareMode (L1).
  3. No share sheet, the same control copies the link (desktop Firefox). The button keeps its name, because a focused control whose name flips is not reliably re-read; the shared toast shows "Link copied" and announces it once through its own polite region. A failed copy has its own alert, with the link itself shown under it in a read-only field selected on focus, because the shared link is not the page's address. Closing the sheet says nothing; a refusal falls back to copying.

Why: tarot showed three buttons and three network chips for one intent; the system sheet does each better, and a second control for one intent is a defect (AGENTS.md section 1). The other web surfaces already shared this way (hub feed, post detail, hub page, Lens, the series reader, app pages).

A page a link can open from outside shows whose it is and leads on. A visitor from a shared link arrives with no context: a card and a sentence with no mark reads as a stray page.

  1. Every route, not only the main screen. A share link opens a route (a card, a result, a post), so the brand lockup is on that route too. It is YrounLogoDomainView, top left before main, reading "YROUN" and the short product name ("YROUN Tarot", "YROUN 타로", "YROUN Briefing"), never a longer page title. Two links: the mark to the Yroun home, the way out of any product, and the name to that product's own home; same tab, never target=_blank (a new tab from a share landing breaks Back). A play game also offers Play itself from its top bar. Tools and sites carry the mark in their shared chrome (AppSidebar).
  2. The share preview is not the page. An og image that shows the mark does not exempt the page: the image stays in the chat, and the visitor is on the page.

Why: tarot's card page, the one its share link opens, rendered only the card and its meaning while the main screen carried the lockup, and the per-app check passed. Gate: game-kit brand-lockup-gate.test.ts walks every route of every game through its imports and layouts for the lockup. It proves presence, not placement: before main and the 44px target are the component's and review's. Sites are not walked yet.

Live specimens

Roles × sizesOn the page ground. The role sets how loud the action is; the size follows where it sits.

filled

btn btn-filled btn-sm
btn btn-filled btn-md
btn btn-filled btn-lg

tinted

btn btn-tinted btn-sm
btn btn-tinted btn-md
btn btn-tinted btn-lg

outlined

btn btn-outlined btn-sm
btn btn-outlined btn-md
btn btn-outlined btn-lg
Ghost, inside a cardGhost has no fill, so it only reads where a container frames it.

ghost

btn btn-ghost btn-sm
btn btn-ghost btn-md
btn btn-ghost btn-lg
DestructiveRed fill for the final confirm only; the outlined form everywhere else.
btn btn-filled btn-danger btn-md
btn btn-outlined btn-danger btn-md
Icon onlyA square of the same three heights; round among round controls.
btn btn-outlined btn-icon btn-sm
btn btn-outlined btn-icon btn-md
btn btn-outlined btn-icon btn-lg
btn btn-outlined btn-icon btn-sm btn-round
btn btn-outlined btn-icon btn-md btn-round
btn btn-outlined btn-icon btn-lg btn-round
Disabled and loading
disabled
loading