From 71d10b0749366c70b4032bd8a7c6609dc8924079 Mon Sep 17 00:00:00 2001 From: austin Date: Sun, 26 Jul 2026 18:32:29 -0500 Subject: [PATCH] Corners: 12px, and named once MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 24px (Tailwind's rounded-3xl) was the roundest thing on the page and read as a phone app. A printed card has a corner you can see. Two tokens rather than a find-and-replace, so this is answered once and not per template: `--radius-panel` (12px) for anything with an edge — cards, photos mounted on them, the admin's boxes — and `--radius-field` (8px) for inputs, which were three different radii across the public form and the admin. Buttons stay fully round: the pill is the brand's button shape and always was. 53 tests green, every class on all seven checked pages still resolves. --- src/main/resources/templates/admin/catalogue.html | 2 +- src/main/resources/templates/admin/layout.html | 4 ++-- src/main/resources/templates/contact.html | 8 ++++---- src/main/resources/templates/home.html | 2 +- src/main/styles/admin.css | 8 ++++---- src/main/styles/components.css | 2 +- src/main/styles/theme.css | 10 ++++++++++ 7 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/main/resources/templates/admin/catalogue.html b/src/main/resources/templates/admin/catalogue.html index 84f4148..86e3f95 100644 --- a/src/main/resources/templates/admin/catalogue.html +++ b/src/main/resources/templates/admin/catalogue.html @@ -126,7 +126,7 @@
+ class="w-28 h-28 rounded-field object-cover border border-bakery-200 bg-bakery-100">
-
+

Ordering for a crowd?

Goodie boxes, party packages and wedding desserts have their own page, with sizes and prices. diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html index 4be2917..ce91e41 100644 --- a/src/main/resources/templates/home.html +++ b/src/main/resources/templates/home.html @@ -79,7 +79,7 @@

Iced sugar cookies from The Vine + class="w-full h-64 md:h-80 object-cover rounded-panel shadow-xs">

Ordering for a crowd?

diff --git a/src/main/styles/admin.css b/src/main/styles/admin.css index 8682d38..b9b178f 100644 --- a/src/main/styles/admin.css +++ b/src/main/styles/admin.css @@ -11,7 +11,7 @@ * on the photo pickers needs. */ @utility btn { - @apply inline-flex items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium + @apply inline-flex items-center justify-center gap-1.5 rounded-field px-3 py-1.5 text-sm font-medium transition-colors; } @@ -31,18 +31,18 @@ /* Square, for the arrows and the crosses — a row of these is how anything gets reordered. */ @utility btn-icon { - @apply inline-flex items-center justify-center w-7 h-7 rounded-md border border-bakery-300 + @apply inline-flex items-center justify-center w-7 h-7 rounded-field border border-bakery-300 text-bakery-700 hover:bg-bakery-100 transition-colors disabled:opacity-30 disabled:cursor-not-allowed; } @utility field { - @apply w-full rounded-md border border-bakery-300 bg-white px-3 py-2 text-sm + @apply w-full rounded-field border border-bakery-300 bg-white px-3 py-2 text-sm focus:border-bakery-500 focus:outline-none focus:ring-1 focus:ring-bakery-500; } @utility card { - @apply rounded-lg border border-bakery-200 bg-white p-4 shadow-sm; + @apply rounded-panel border border-bakery-200 bg-white p-4 shadow-sm; } @utility card-heading { diff --git a/src/main/styles/components.css b/src/main/styles/components.css index 07cf441..713e00c 100644 --- a/src/main/styles/components.css +++ b/src/main/styles/components.css @@ -70,7 +70,7 @@ * `panel-lift` is one you can click, and it rises rather than just darkening. */ @utility panel { - @apply bg-white rounded-3xl border border-bakery-200/70; + @apply bg-white rounded-panel border border-bakery-200/70; box-shadow: var(--shadow-card); } diff --git a/src/main/styles/theme.css b/src/main/styles/theme.css index 257db9d..768c765 100644 --- a/src/main/styles/theme.css +++ b/src/main/styles/theme.css @@ -38,6 +38,16 @@ --color-bakery-800: #37412f; --color-bakery-900: #232b1e; + /* + * CORNERS. Two decisions, named, so "how round is a card" is answered once rather than per template. + * + * A card is 12px. It was 24px (Tailwind's rounded-3xl), which is the roundest thing on the page and + * reads as a phone app; a bakery's printed card has a corner you can see. Fields are tighter again, and + * buttons stay fully round — the pill is the brand's button shape and always was. + */ + --radius-panel: 0.75rem; + --radius-field: 0.5rem; + /* * Shadows tinted with the darkest sage rather than black. A neutral grey shadow on a cream page reads * as a UI panel floating over a screen; a warm one reads as card stock lying on a counter, which is