style(design): consistency sweep + UX upgrades
Deploy / verify (push) Successful in 49s
Deploy / deploy (push) Successful in 1m0s

- Palette: gray/zinc/slate/neutral → stein, red → fire, amber → erde,
  sky → himmel, green → wald
- Footer: replaced raw rgb with stein tokens
- Radius: unified to rounded-xs across cards, buttons, inputs, pagination
- Buttons: .btn-primary/.btn-secondary now font-medium; added secondary
- Card hover: -translate-y-0.5 + shadow + wald-300 border
- Header active link: wald border-bottom + wald-700 text
- Mobile nav: bigger touch targets + wald active accent
- Pagination: prev/next text labels + wald-500 active state with
  separated shape/color classes to avoid Tailwind conflicts
- Lead paragraph: scoped .markdown > p:first-child for top-level
  MarkdownBlock only via [data-block-type="markdown"]
- Section dividers: subtle wald-200 gradient between content rows
- Global focus-visible ring (wald-500)
- Inline hex → palette tokens (Badge amber, Tag custom-color contrast)
- Font weights snapped to design system (300/400/500/600/700)
- transition-all → transition-colors where only color changes
- Removed em-dashes from user-visible templates

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Peter Meier
2026-05-05 01:06:22 +02:00
parent 3ded972642
commit b7093b703a
42 changed files with 280 additions and 234 deletions
+17 -17
View File
@@ -133,7 +133,7 @@
<label class="relative block w-full sm:max-w-sm">
<span class="sr-only">{t(T.blog_search_label)}</span>
<span
class="pointer-events-none absolute top-1/2 left-2 -translate-y-1/2 text-zinc-500"
class="pointer-events-none absolute top-1/2 left-2 -translate-y-1/2 text-stein-500"
>
<Icon icon="mdi:magnify" class="h-4 w-4" />
</span>
@@ -141,13 +141,13 @@
type="search"
bind:value={query}
placeholder={t(T.blog_search_placeholder)}
class="w-full rounded-sm border border-zinc-300 bg-white py-2 pr-9 pl-8 text-sm focus:border-zinc-500 focus:outline-none"
class="w-full rounded-xs border border-stein-300 bg-white py-2 pr-9 pl-8 text-sm focus:border-stein-500 focus:outline-none"
/>
{#if query}
<button
type="button"
onclick={() => (query = "")}
class="absolute top-1/2 right-1.5 -translate-y-1/2 rounded-sm p-1 text-zinc-500 hover:bg-zinc-100 hover:text-zinc-900"
class="absolute top-1/2 right-1.5 -translate-y-1/2 rounded-xs p-1 text-stein-500 hover:bg-stein-100 hover:text-stein-900"
aria-label={t(T.blog_search_clear)}
>
<Icon icon="mdi:close" class="h-4 w-4" />
@@ -158,13 +158,13 @@
<label class="relative inline-flex items-center">
<span class="sr-only">{t(T.blog_year_label)}</span>
<span
class="pointer-events-none absolute top-1/2 left-2 -translate-y-1/2 text-zinc-500"
class="pointer-events-none absolute top-1/2 left-2 -translate-y-1/2 text-stein-500"
>
<Icon icon="mdi:calendar" class="h-4 w-4" />
</span>
<select
bind:value={year}
class="appearance-none rounded-sm border border-zinc-300 bg-white py-2 pr-7 pl-8 text-sm focus:border-zinc-500 focus:outline-none"
class="appearance-none rounded-xs border border-stein-300 bg-white py-2 pr-7 pl-8 text-sm focus:border-stein-500 focus:outline-none"
>
<option value="">{t(T.blog_year_all)}</option>
{#each availableYears as y}
@@ -172,7 +172,7 @@
{/each}
</select>
<span
class="pointer-events-none absolute top-1/2 right-1.5 -translate-y-1/2 text-zinc-500"
class="pointer-events-none absolute top-1/2 right-1.5 -translate-y-1/2 text-stein-500"
>
<Icon icon="mdi:chevron-down" class="h-4 w-4" />
</span>
@@ -183,10 +183,10 @@
{#if !isFiltering && upcomingEvents.length > 0}
<section
class="not-prose mb-6 rounded-sm border border-zinc-200 bg-zinc-50 p-4"
class="not-prose mb-6 rounded-xs border border-stein-200 bg-stein-50 p-4"
>
<h2
class="mb-3 flex items-center gap-2 text-sm font-semibold tracking-wide text-zinc-700"
class="mb-3 flex items-center gap-2 text-sm font-semibold tracking-wide text-stein-700"
>
<Icon icon="mdi:calendar-clock" class="size-7 shrink-0" />
{t(T.blog_upcoming_events)}
@@ -200,7 +200,7 @@
>
<EventBadges eventDate={ev.eventDate} />
<span
class="text-sm text-zinc-900 group-hover:text-zinc-950"
class="text-sm text-stein-900 group-hover:text-stein-900"
>{ev.headline}</span
>
</a>
@@ -212,7 +212,7 @@
{#if isFiltering}
<div
class="mb-3 flex flex-wrap items-center gap-2 text-xs text-zinc-600"
class="mb-3 flex flex-wrap items-center gap-2 text-xs text-stein-600"
>
<span>
{t(T.blog_results_count, { count: filteredResults.length })}
@@ -225,7 +225,7 @@
query = "";
year = "";
}}
class="text-zinc-500 underline hover:text-zinc-900"
class="text-stein-500 underline hover:text-stein-900"
>{t(T.blog_filter_reset)}</button
>
</div>
@@ -236,11 +236,11 @@
{#each filteredResults as hit}
<a
href={searchResultHref(hit.slug)}
class="flex flex-col overflow-hidden border border-gray-200 bg-white text-slate-950 no-underline transition-all"
class="flex flex-col overflow-hidden border border-stein-200 bg-white text-stein-900 no-underline transition-colors"
>
{#if hit.image}
<div
class="aspect-3/2 w-full overflow-hidden bg-gray-100"
class="aspect-3/2 w-full overflow-hidden bg-stein-100"
>
<img
src={hit.image}
@@ -255,7 +255,7 @@
{hit.headline}
</h3>
{#if hit.excerpt}
<p class="text-sm text-zinc-700 line-clamp-3">
<p class="text-sm text-stein-700 line-clamp-3">
{hit.excerpt}
</p>
{/if}
@@ -265,7 +265,7 @@
</div>
{:else}
<div
class="rounded-sm border border-zinc-200 bg-white p-6 text-center text-sm text-zinc-600"
class="rounded-xs border border-stein-200 bg-white p-6 text-center text-sm text-stein-600"
>
{t(T.blog_no_results)}
</div>
@@ -318,7 +318,7 @@
<div class="flex flex-wrap items-center gap-2">
<Pagination {currentPage} {totalPages} {basePath} {activeTag} />
<div class="grow"></div>
<div class="bg-white rounded-md font-thin">
<div class="bg-white rounded-xs font-light">
<div class="inline-flex text-xs p-2">
{#if totalCount > 0}
{t(T.blog_count, {
@@ -339,7 +339,7 @@
</div>
</div>
<div class="mt-4 text-xs text-zinc-600">
<div class="mt-4 text-xs text-stein-600">
<a
href="/posts/rss.xml"
class="inline-flex items-center gap-1 hover:underline"