Files
Cato def289d6c3 feat(signin): the provider screen carries the app's own name, icon and accent (#39)
The page between an app's button and Google/GitHub was a bare form, so a
person coming from Heidi saw nothing of Heidi. Each client's registration
now carries its icon (on its own origin, from its live page) and, where the
app ships one, its accent; the page shows them, with a letter tile and the
neutral look otherwise. One line says Google and GitHub will show the
shared sign-in service, not the app.
2026-11-10 10:24:42 +01:00

115 lines
2.2 KiB
CSS

@import "@bitbaum/design-tokens/tokens.css";
@import "@bitbaum/accountkit/styles.css";
/* No tokens are defined here; only compositions of the shared ones. */
html {
color-scheme: light dark;
}
body {
margin: 0;
min-height: 100dvh;
background: hsl(var(--surface-page));
color: hsl(var(--text-primary));
font-family: var(--font-sans);
display: grid;
place-items: start center;
}
main {
width: 100%;
max-width: 24rem;
padding: 3rem 1rem;
box-sizing: border-box;
}
h1 {
font-size: 1.5rem;
line-height: 1.25;
margin: 0 0 0.5rem;
}
p {
margin: 0 0 1.5rem;
color: hsl(var(--text-secondary));
}
.providers {
display: grid;
gap: 0.75rem;
margin: 0;
padding: 0;
}
.providers button {
width: 100%;
min-height: 44px;
}
a {
color: inherit;
text-underline-offset: 0.2em;
}
.small {
margin-top: 1.5rem;
font-size: 0.875rem;
color: hsl(var(--text-tertiary));
}
/* The sign-in card carries the app the person came from (lib/clients.ts). */
main.signin {
width: calc(100% - 2rem);
margin-top: 2rem;
padding: 2rem 1.5rem;
max-width: 26rem;
background: hsl(var(--surface-base));
border: 1px solid hsl(var(--border-subtle));
border-top: 4px solid var(--client-accent, hsl(var(--border-subtle)));
border-radius: 12px;
}
.client {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.client-logo {
width: 40px;
height: 40px;
border-radius: 10px;
object-fit: contain;
flex: none;
}
.client-letter {
display: grid;
place-items: center;
font-weight: 600;
color: hsl(var(--text-primary));
background: hsl(var(--surface-hover));
box-shadow: inset 0 0 0 2px var(--client-accent, transparent);
}
.client-name {
font-weight: 600;
color: hsl(var(--text-primary));
}
.providers .note {
margin: 0.25rem 0 0;
font-size: 0.875rem;
color: hsl(var(--text-tertiary));
}
main.privacy {
max-width: 40rem;
}
.privacy h2 {
font-size: 1.125rem;
line-height: 1.4;
margin: 2rem 0 0.5rem;
}
.privacy ul {
margin: 0 0 1.5rem;
padding-left: 1.25rem;
color: hsl(var(--text-secondary));
}
.privacy li + li {
margin-top: 0.75rem;
}
.privacy strong {
color: hsl(var(--text-primary));
}
.privacy code {
font-family: var(--font-mono);
font-size: 0.875em;
}