chore: medieval flat palette and component classes, no gradients

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fabian @ Blax Software 2026-10-28 20:19:19 +01:00
parent 657e2d331e
commit 55daa09066
1 changed files with 64 additions and 26 deletions

View File

@ -2,28 +2,52 @@
@source "../../../app/**/*.{vue,ts}";
/* Light, warm parchment palette. System fonts only: nothing to host or license. */
/*
* Medieval palette in flat colours: parchment, dark wood, oxblood, muted gold,
* moss and iron. No gradients, glows or blur anywhere; depth comes from solid
* borders and hard offset shadows. System fonts only: nothing to host or license.
*/
@theme {
--font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-display: Georgia, "Iowan Old Style", "Palatino Linotype", ui-serif, serif;
--font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", ui-serif, serif;
--color-parchment-50: #fdfaf4;
--color-parchment-100: #f7efe1;
--color-parchment-200: #eee1c9;
--color-parchment-300: #e0cca8;
--color-ink-900: #2b2118;
--color-ink-700: #4a3b2e;
--color-ink-500: #7a6a58;
--color-ink-400: #9c8c78;
--color-parchment-50: #f3e7c9;
--color-parchment-100: #e8d6ad;
--color-parchment-200: #dcc595;
--color-parchment-300: #c4a676;
--color-ink-900: #2b1d10;
--color-ink-700: #4a3420;
--color-ink-500: #6e563b;
--color-ink-400: #8a7253;
--color-wood-950: #1f150c;
--color-wood-900: #2f2013;
--color-wood-800: #3e2b1a;
--color-wood-700: #57391f;
--color-wood-600: #75502e;
--color-blood-800: #5c140f;
--color-blood-700: #7b1e16;
--color-blood-600: #962a1f;
--color-gold-400: #d9b44a;
--color-gold-500: #c49a2c;
--color-gold-600: #9c7a1f;
--color-moss-700: #3d5a26;
--color-moss-600: #4f7231;
--color-moss-500: #6a8c3f;
--color-iron-600: #5a5f63;
--color-iron-400: #8b9094;
--shadow-hard: 3px 3px 0 0 rgb(47 32 19 / 0.35);
}
@layer base {
body {
@apply bg-parchment-100 font-sans text-ink-900 antialiased;
background-image:
radial-gradient(circle at 15% 0%, rgb(255 255 255 / 0.7), transparent 40%),
radial-gradient(circle at 85% 100%, rgb(224 204 168 / 0.35), transparent 45%);
background-attachment: fixed;
}
button:not(:disabled),
@ -34,46 +58,60 @@
@layer components {
.panel {
@apply rounded-xl border border-parchment-300/70 bg-white/80 shadow-sm;
@apply rounded-md border-2 border-wood-700 bg-parchment-50 shadow-hard;
}
.panel-head {
@apply flex flex-wrap items-center justify-between gap-2 border-b border-parchment-200 px-4 py-3;
@apply flex flex-wrap items-center justify-between gap-2 border-b-2 border-wood-700 bg-parchment-200 px-4 py-2.5;
}
.panel-title {
@apply font-display text-lg font-semibold text-ink-900;
@apply font-display text-lg font-semibold text-wood-900;
font-variant: small-caps;
letter-spacing: 0.02em;
}
.panel-body {
@apply p-4;
}
.btn {
@apply inline-flex items-center justify-center gap-1.5 rounded-lg px-3 py-1.5 text-sm font-medium transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-amber-600 disabled:cursor-not-allowed disabled:opacity-45;
@apply inline-flex items-center justify-center gap-1.5 rounded-sm border px-3 py-1.5 text-sm font-semibold transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gold-500 disabled:cursor-not-allowed disabled:opacity-45;
}
.btn-primary {
@apply bg-amber-700 text-white shadow-sm hover:bg-amber-800 disabled:hover:bg-amber-700;
@apply border-blood-800 bg-blood-700 text-parchment-50 hover:bg-blood-600 disabled:hover:bg-blood-700;
}
.btn-outline {
@apply border border-parchment-300 bg-white text-ink-700 hover:bg-parchment-100;
@apply border-wood-600 bg-parchment-50 text-wood-800 hover:bg-parchment-200;
}
.btn-ghost {
@apply text-ink-700 hover:bg-parchment-200/70;
@apply border-transparent text-wood-800 hover:bg-parchment-200;
}
.btn-danger {
@apply text-rose-700 hover:bg-rose-50;
@apply border-transparent text-blood-700 hover:bg-parchment-200;
}
.input {
@apply w-full rounded-lg border border-parchment-300 bg-white px-3 py-2 text-ink-900 shadow-inner outline-none placeholder:text-ink-400 focus:border-amber-600 focus:ring-2 focus:ring-amber-600/25;
@apply w-full rounded-sm border border-wood-600 bg-parchment-50 px-3 py-2 text-ink-900 outline-none placeholder:text-ink-400 focus:border-gold-600 focus:ring-2 focus:ring-gold-500/40;
}
.label {
@apply mb-1 block text-sm font-medium text-ink-700;
@apply mb-1 block text-sm font-semibold text-ink-700;
}
.badge {
@apply inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap;
@apply inline-flex items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-semibold whitespace-nowrap;
}
.badge-plain {
@apply border-wood-600/40 bg-parchment-200 text-ink-700;
}
.badge-gold {
@apply border-gold-600 bg-gold-400 text-wood-950;
}
.badge-moss {
@apply border-moss-700 bg-moss-600 text-parchment-50;
}
.badge-blood {
@apply border-blood-800 bg-blood-700 text-parchment-50;
}
.alert {
@apply rounded-lg border border-rose-200 bg-rose-50 px-3 py-2 text-sm text-rose-800;
@apply rounded-sm border-2 border-blood-700 bg-[#f0d6c8] px-3 py-2 text-sm text-blood-800;
}
}