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

80 lines
2.4 KiB
CSS
Raw Normal View History

@import "tailwindcss";
@source "../../../app/**/*.{vue,ts}";
/* Light, warm parchment palette. 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;
--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;
}
@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),
[role="button"]:not(:disabled) {
cursor: pointer;
}
}
@layer components {
.panel {
@apply rounded-xl border border-parchment-300/70 bg-white/80 shadow-sm;
}
.panel-head {
@apply flex flex-wrap items-center justify-between gap-2 border-b border-parchment-200 px-4 py-3;
}
.panel-title {
@apply font-display text-lg font-semibold text-ink-900;
}
.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;
}
.btn-primary {
@apply bg-amber-700 text-white shadow-sm hover:bg-amber-800 disabled:hover:bg-amber-700;
}
.btn-outline {
@apply border border-parchment-300 bg-white text-ink-700 hover:bg-parchment-100;
}
.btn-ghost {
@apply text-ink-700 hover:bg-parchment-200/70;
}
.btn-danger {
@apply text-rose-700 hover:bg-rose-50;
}
.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;
}
.label {
@apply mb-1 block text-sm font-medium text-ink-700;
}
.badge {
@apply inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap;
}
.alert {
@apply rounded-lg border border-rose-200 bg-rose-50 px-3 py-2 text-sm text-rose-800;
}
}