152 lines
4.4 KiB
CSS
152 lines
4.4 KiB
CSS
@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);
|
|
}
|
|
|
|
/*
|
|
* Dense on purpose, like the old browser strategy games: a 14 px base (every rem
|
|
* shrinks with it), square frames, thin lines, tan header bands, tight table rows.
|
|
* No rounded cards, no pills, no big padding; icons only where they carry meaning.
|
|
*/
|
|
@layer base {
|
|
html {
|
|
font-size: 14px;
|
|
}
|
|
body {
|
|
@apply bg-[#cdb488] font-sans text-ink-900 antialiased;
|
|
}
|
|
|
|
button:not(:disabled),
|
|
[role="button"]:not(:disabled) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Tables in frames: a header band, tight rows, thin lines between them. */
|
|
.panel table th {
|
|
@apply font-semibold;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.panel {
|
|
@apply border border-wood-700 bg-parchment-50;
|
|
}
|
|
.panel-head {
|
|
@apply flex flex-wrap items-center justify-between gap-2 border-b border-wood-700 bg-parchment-300 px-2 py-1;
|
|
}
|
|
.panel-title {
|
|
@apply font-display text-[15px] leading-snug font-semibold text-wood-950;
|
|
font-variant: small-caps;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.panel-body {
|
|
@apply p-2.5;
|
|
}
|
|
|
|
.btn {
|
|
@apply inline-flex items-center justify-center gap-1 rounded-[2px] border px-2.5 py-1 text-[13px] leading-tight font-semibold focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-gold-500 disabled:cursor-not-allowed disabled:opacity-45;
|
|
}
|
|
/* The everyday button: dark wood with light text. */
|
|
.btn-primary {
|
|
@apply border-wood-950 bg-wood-800 text-parchment-50 hover:bg-wood-700 disabled:hover:bg-wood-800;
|
|
}
|
|
/* Attacks only. */
|
|
.btn-attack {
|
|
@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-100 text-wood-900 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-none border border-wood-600 bg-[#fbf3df] px-1.5 py-1 text-[13px] text-ink-900 outline-none placeholder:text-ink-400 focus:border-wood-900;
|
|
}
|
|
.label {
|
|
@apply mb-0.5 block text-[13px] font-semibold text-ink-700;
|
|
}
|
|
|
|
.badge {
|
|
@apply inline-flex items-center gap-1 border px-1 text-[11px] leading-4 font-semibold whitespace-nowrap;
|
|
}
|
|
.badge-plain {
|
|
@apply border-wood-600/50 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;
|
|
}
|
|
|
|
/* A thin full-width notice with an (i) and a close cross. */
|
|
.alert {
|
|
@apply border border-blood-700 bg-[#f0d6c8] px-2 py-1 text-[13px] text-blood-800;
|
|
}
|
|
|
|
/* The framed content column on the backdrop. */
|
|
.frame {
|
|
@apply border border-wood-900 bg-parchment-100;
|
|
}
|
|
/* A data table: tan header band, tight rows, thin lines. */
|
|
.grid-table {
|
|
@apply w-full border-collapse text-[13px];
|
|
}
|
|
.grid-table th {
|
|
@apply border-b border-wood-700 bg-parchment-200 px-1.5 py-0.5 text-left text-xs font-semibold text-ink-700;
|
|
}
|
|
.grid-table td {
|
|
@apply border-b border-parchment-300 px-1.5 py-0.5;
|
|
}
|
|
}
|