fix(auth): give the sign-in input a text colour, and restore the theme

The email field computed its own background one step lighter than the page
and never set `color`. Form controls do not inherit it, so the text someone
typed was the UA default — black, over a near-black field. There was no
`color-scheme` either, so the browser rendered the control in light
appearance to begin with.

The theme was a second, separate loss: `issuer()` still takes one and calls
`setTheme`, but nothing had passed one since `packages/auth` became a
vendored fork, so every sign-in rendered as OpenAuth — its font, its
periwinkle, its logo. Restored from the pre-fork config, with the logo and
favicon repointed because both URLs it carried now 404 and a broken `logo`
renders a broken image rather than falling back.
This commit is contained in:
Wanjohi
2026-09-17 22:54:00 +03:00
parent 7859c8e13a
commit 4ed36e0d38
2 changed files with 57 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
export default `:root {
color-scheme: light dark;
--color-background-dark: #0e0e11;
--color-background-light: #ffffff;
--color-primary-dark: #6772e5;
@@ -133,6 +135,11 @@ export default `:root {
h
);
background: var(--background);
/* Form controls do not inherit \`color\`, so without this the text someone
types is the UA default — black, over the near-black \`--background\`
computed just above. The page looked fine and the field was unreadable. */
color: var(--color-high);
caret-color: var(--color-high);
border-color: oklch(
from var(--color-background)
calc(clamp(0.22, l + (-0.12 * clamp(0, calc((l - 0.714) * 1000), 1) + 0.06), 0.88)) c h
@@ -141,6 +148,22 @@ export default `:root {
font-size: var(--font-size-sm);
outline: none;
&::placeholder {
color: var(--color-high);
opacity: 0.5;
}
/* Chrome paints its own background over autofilled fields and ignores
\`background\`. An inset shadow is the only thing it honours, and
\`-webkit-text-fill-color\` the only thing that moves the glyphs. */
&:-webkit-autofill,
&:-webkit-autofill:hover,
&:-webkit-autofill:focus {
-webkit-text-fill-color: var(--color-high);
-webkit-box-shadow: 0 0 0 100px var(--background) inset;
caret-color: var(--color-high);
}
&:focus {
border-color: oklch(
from var(--color-background)