game-village-politics-frontend/app/assets/css/main.css

118 lines
3.3 KiB
CSS
Raw Normal View History

@import "tailwindcss";
@source "../../../app/**/*.{vue,ts}";
/*
* 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", "Book Antiqua", ui-serif, serif;
--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;
}
button:not(:disabled),
[role="button"]:not(:disabled) {
cursor: pointer;
}
}
@layer components {
.panel {
@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-2 border-wood-700 bg-parchment-200 px-4 py-2.5;
}
.panel-title {
@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-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 border-blood-800 bg-blood-700 text-parchment-50 hover:bg-blood-600 disabled:hover:bg-blood-700;
}
.btn-outline {
@apply border-wood-600 bg-parchment-50 text-wood-800 hover:bg-parchment-200;
}
.btn-ghost {
@apply border-transparent text-wood-800 hover:bg-parchment-200;
}
.btn-danger {
@apply border-transparent text-blood-700 hover:bg-parchment-200;
}
.input {
@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-semibold text-ink-700;
}
.badge {
@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-sm border-2 border-blood-700 bg-[#f0d6c8] px-3 py-2 text-sm text-blood-800;
}
}