Skip to content

DESIGN.md denies the existence of Button variants used 57 times #2705

Closed

Description

@malibio

Overview

DESIGN.md's Button section opens with:

Three variants: primary (filled primary), secondary (filled secondary), destructive (filled destructive). Radius md. No outline/ghost variants in the current system — use secondary for low-emphasis actions.

The shared Button has six variants — default, destructive, outline, secondary, ghost, link — and the two the document says do not exist are used 57 times across the app, including in dialogs the design system otherwise specifies closely:

settings/sections/database-settings.svelte:225   <Button variant="ghost">Cancel</Button>
ui/calendar/calendar-prev-button.svelte:22       buttonVariants({ variant: 'outline' })
ui/calendar/calendar-next-button.svelte:22       buttonVariants({ variant: 'outline' })

Why this matters

The sentence is not merely stale — it actively misdirects. A reader following it writes variant="secondary" for a low-emphasis action while the surrounding code uses ghost, so the document produces the inconsistency it exists to prevent. ghost is currently the house style for a dialog Cancel; the document recommends against it.

It also leaves ghost, outline and link with no specified hover behavior, no contrast figures, and no statement of when to reach for each — the gaps that let the filled variants drift in the first place (#2689).

Decision needed

This is a documentation-accuracy issue, but the fix requires a design call rather than a transcription:

  • Are ghost/outline/link endorsed (document them: role, hover token, contrast, when to use), or unwanted (keep the prohibition and open separate work to migrate the 57 usages)?
  • The current state — 57 usages of variants the spec denies — is the one option that should not persist either way.

Worth noting: ghost and outline hover to accent, not to a --*-hover token, and are not filled variants, so the #2689 rule does not bind them. Whatever is decided, their hover behavior should be stated rather than left implicit.

Acceptance Criteria

  • A decision recorded on whether ghost / outline / link are part of the system
  • DESIGN.md's Button section matches the shipped variant set
  • Each endorsed variant has its hover behavior stated
  • If any variant is rejected, follow-up work is filed for the usages that would need migrating

Related

Activity

  1. malibio commented on Sep 17, 2026

    @malibio
    CollaboratorAuthor

    Closing: this was filed prematurely.

    The body poses an open design question — are ghost/outline endorsed or unwanted? — and its first acceptance criterion is "a decision recorded on...". That is a decision that hasn't been made, parked in the tracker. An issue should record a concluded decision and say what to implement.

    The underlying observation still stands and I'll raise it directly: DESIGN.md line 280 says "No outline/ghost variants in the current system" while both are used 57 times. I'll re-file once there's an actual decision to implement.

    My reading of that sentence was also probably wrong — I took it as a claim about the component's variant API, but given line 372's rule against borders and outlines for accessibility, it more likely means "don't give buttons visible enclosure."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions