Skip to content

@hanzo/ui 8.32.3: the sign-in panel stands on its own card, coloured by the site - #316

Merged
Darkhorse7stars merged 1 commit into
mainfrom
signin-panel-card
Nov 11, 2026
Merged

Darkhorse7stars merged 1 commit into
mainfrom
signin-panel-card

Conversation

@Darkhorse7stars

Copy link
Copy Markdown
Member

SignInPanel was drawn straight on the page. On hanzo.team the dot field showed through the providers' tinted buttons and the email field, so the panel was hard to read.

It now stands on a card: a solid ground ($background) inside a 1px hairline ($borderColor), a $6 corner and a $6 inset.

  • background, borderColor: the site's colours for the card, a theme token ($panel) or any CSS colour.
  • bare: no card, for a host that sets the panel in a card of its own.
<SignInPanel title="Sign in to Hanzo Team" />                                   // the default card
<SignInPanel background="$panel" borderColor="$ink" />                          // a site's tokens
<SignInPanel background="#0f0f0f" borderColor="rgba(255,255,255,0.15)" />       // any CSS colour
<SignInPanel bare />                                                            // no card

Checks: signin-panel.test.tsx 9/9 (new: the card's ground and hairline, a site's own colours, none when bare); no type errors in src/auth.

hanzo.team picks it up with @hanzo/ui 8.32.3 (hanzoai/team), then @hanzo/team in hanzo-inc/team.

…by the site

SignInPanel was drawn straight on the page, and on hanzo.team the dot field
showed through the providers' tinted buttons and the field, so the panel was
hard to read. It now stands on a card: a solid ground ($background) inside a
1px hairline ($borderColor), a 12px corner and a 24px inset.

- background, borderColor: the site's colours for the card, a theme token
  ($panel) or any CSS colour.
- bare: no card, for a host that sets the panel in a card of its own.

A test reads the card's ground and hairline, a site's own colours, and none
when bare.
@Darkhorse7stars
Darkhorse7stars merged commit 6dcf6c8 into main Nov 11, 2026
5 checks passed
@Darkhorse7stars
Darkhorse7stars deleted the signin-panel-card branch November 11, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant