Adopt the new palette; square corners, superellipse buttons
The theme defaults (light and dark) come from the 16-color grid, kept as PALETTE in src/lib/color.ts; every text pair passes the admin's 4.5:1 check. Nothing is rounded any more except buttons, which share one btn utility (Poppins Bold, a superellipse corner where the browser has corner-shape) and true dots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ecdcd4ec37
commit
d81f7bd856
62 changed files with 416 additions and 384 deletions
|
|
@ -35,7 +35,7 @@ const WHOLE_PAGE = "";
|
|||
/* ── Shared field chrome ─────────────────────────────────────── */
|
||||
|
||||
export const fieldClass =
|
||||
"w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body " +
|
||||
"w-full border border-muted/50 bg-surface px-4 py-3 text-body "+
|
||||
"placeholder:text-muted outline-none transition-colors " +
|
||||
"focus:border-brand focus:ring-2 focus:ring-brand/25";
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ const selectClass = `${fieldClass} appearance-none pr-10`;
|
|||
|
||||
export function OptionalTag() {
|
||||
return (
|
||||
<span className="ml-2 rounded-full bg-tint px-2 py-0.5 text-xs font-medium text-link">
|
||||
<span className="ml-2 bg-tint px-2 py-0.5 text-xs font-medium text-link">
|
||||
Optional
|
||||
</span>
|
||||
);
|
||||
|
|
@ -54,7 +54,7 @@ export function OptionalTag() {
|
|||
/* On a field the send button waits for. */
|
||||
export function RequiredTag() {
|
||||
return (
|
||||
<span className="ml-2 rounded-full bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">
|
||||
<span className="ml-2 bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">
|
||||
Required
|
||||
</span>
|
||||
);
|
||||
|
|
@ -141,7 +141,7 @@ export function TilePicker({
|
|||
/>
|
||||
<span
|
||||
className={
|
||||
"flex h-full flex-col gap-1 rounded-xl border p-4 transition-colors " +
|
||||
"flex h-full flex-col gap-1 border p-4 transition-colors "+
|
||||
"peer-focus-visible:ring-2 peer-focus-visible:ring-brand/40 " +
|
||||
(selected
|
||||
? "border-brand bg-tint"
|
||||
|
|
@ -313,7 +313,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
|
|||
return (
|
||||
<div
|
||||
aria-live="polite"
|
||||
className="rounded-2xl border border-brand/20 bg-surface p-8 sm:p-10"
|
||||
className="border border-brand/20 bg-surface p-8 sm:p-10"
|
||||
>
|
||||
<h3 className="text-2xl font-bold" style={{ color: accentText(BRAND) }}>
|
||||
Thanks, we've got it
|
||||
|
|
@ -333,7 +333,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
|
|||
<button
|
||||
type="button"
|
||||
onClick={reset}
|
||||
className="mt-6 rounded-full border border-brand px-5 py-2.5 font-semibold text-link transition-colors hover:bg-tint focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
|
||||
className="mt-6 btn border border-brand px-5 py-2.5 text-link transition-colors hover:bg-tint focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
|
||||
>
|
||||
{request ? "Send another request" : "Send more feedback"}
|
||||
</button>
|
||||
|
|
@ -345,7 +345,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
|
|||
<form
|
||||
onSubmit={handleSubmit}
|
||||
noValidate
|
||||
className="rounded-2xl border border-brand/20 bg-surface p-6 sm:p-8"
|
||||
className="border border-brand/20 bg-surface p-6 sm:p-8"
|
||||
>
|
||||
{!fixedType && (
|
||||
<>
|
||||
|
|
@ -413,7 +413,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
|
|||
</div>
|
||||
|
||||
{/* Optional contact details */}
|
||||
<div className="mt-8 rounded-xl border border-dashed border-muted/30 bg-tint/60 p-5 sm:p-6">
|
||||
<div className="mt-8 border border-dashed border-muted/30 bg-tint/60 p-5 sm:p-6">
|
||||
<div className="flex flex-wrap items-center">
|
||||
<h3 className="text-base font-semibold text-body">
|
||||
{request ? "How we reach you" : "Your details"}
|
||||
|
|
@ -487,7 +487,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
|
|||
{formError && (
|
||||
<p
|
||||
role="alert"
|
||||
className="mt-8 rounded-xl border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
|
||||
className="mt-8 border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
|
||||
>
|
||||
{formError}
|
||||
</p>
|
||||
|
|
@ -497,7 +497,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
|
|||
<button
|
||||
type="submit"
|
||||
disabled={!ready || sending}
|
||||
className="rounded-full bg-action px-7 py-3 font-semibold text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 disabled:cursor-not-allowed disabled:bg-muted/25 disabled:text-white/80"
|
||||
className="btn bg-action px-7 py-3 text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 disabled:cursor-not-allowed disabled:bg-muted/25 disabled:text-white/80"
|
||||
>
|
||||
{sending ? "Sending…" : request ? "Send request" : "Send feedback"}
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue